Skip to content

Commit 2178fee

Browse files
authored
feat(bedrock): add support for os managed cluster and guardrails latest properties (#1097)
* feat(cdk): upgrade to cdk 2 191, support for opensearch managed cluster --------- Signed-off-by: Alain Krok <[email protected]>
1 parent 9dc9433 commit 2178fee

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1220
-126
lines changed

.projen/deps.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
const GITHUB_USER = 'awslabs';
3030
const PUBLICATION_NAMESPACE = 'cdklabs';
3131
const PROJECT_NAME = 'generative-ai-cdk-constructs';
32-
const CDK_VERSION: string = '2.189.0';
32+
const CDK_VERSION: string = '2.191.0';
3333

3434
function camelCaseIt(input: string): string {
3535
// Hypens and dashes to spaces and then CamelCase...

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# CDK Generative AI Constructs V0.1.306 (2025-04-25)
2+
3+
Based on CDK library version 2.191.0
4+
15
# CDK Generative AI Constructs V0.1.302 (2025-04-11)
26

37
Based on CDK library version 2.189.0

DEVELOPER_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Default output format [None]: json
1616
```
1717

1818
- [Node](https://nodejs.org/en) >= v20.9.0
19-
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.189.0) >= 2.189.0
19+
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.191.0) >= 2.191.0
2020
- [Python](https://www.python.org/downloads/) >=3.9
2121
- [Projen](https://github.com/projen/projen) >= 0.91.5
2222
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/cli/install/) >= 1.22.19

apidocs/@cdklabs/namespaces/bedrock/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
- [KendraKnowledgeBaseAttributes](interfaces/KendraKnowledgeBaseAttributes.md)
151151
- [KendraKnowledgeBaseProps](interfaces/KendraKnowledgeBaseProps.md)
152152
- [LambdaCustomTransformationProps](interfaces/LambdaCustomTransformationProps.md)
153+
- [ManagedWordFilter](interfaces/ManagedWordFilter.md)
153154
- [PIIFilter](interfaces/PIIFilter.md)
154155
- [PromptAttributes](interfaces/PromptAttributes.md)
155156
- [PromptProps](interfaces/PromptProps.md)
@@ -175,6 +176,7 @@
175176
- [VectorKnowledgeBaseProps](interfaces/VectorKnowledgeBaseProps.md)
176177
- [WebCrawlerDataSourceAssociationProps](interfaces/WebCrawlerDataSourceAssociationProps.md)
177178
- [WebCrawlerDataSourceProps](interfaces/WebCrawlerDataSourceProps.md)
179+
- [WordFilter](interfaces/WordFilter.md)
178180

179181
## Type Aliases
180182

apidocs/@cdklabs/namespaces/bedrock/classes/Guardrail.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ When this guardrail was last updated
178178

179179
### managedWordListFilters
180180

181-
> `readonly` **managedWordListFilters**: [`PROFANITY`](../enumerations/ManagedWordFilterType.md#profanity)[]
181+
> `readonly` **managedWordListFilters**: [`ManagedWordFilter`](../interfaces/ManagedWordFilter.md)[]
182182
183183
The managed word list filters applied by the guardrail.
184184

@@ -253,7 +253,7 @@ The stack in which this resource is defined.
253253

254254
### wordFilters
255255

256-
> `readonly` **wordFilters**: `string`[]
256+
> `readonly` **wordFilters**: [`WordFilter`](../interfaces/WordFilter.md)[]
257257
258258
The word filters applied by the guardrail.
259259

@@ -350,7 +350,7 @@ Adds a managed word list filter to the guardrail.
350350

351351
##### filter
352352

353-
[`PROFANITY`](../enumerations/ManagedWordFilterType.md#profanity)
353+
[`ManagedWordFilter`](../interfaces/ManagedWordFilter.md)
354354

355355
The managed word list filter to add.
356356

@@ -410,7 +410,7 @@ Adds a word filter to the guardrail.
410410

411411
##### filter
412412

413-
`string`
413+
[`WordFilter`](../interfaces/WordFilter.md)
414414

415415
The word filter to add.
416416

@@ -422,7 +422,7 @@ The word filter to add.
422422

423423
### addWordFilterFromFile()
424424

425-
> **addWordFilterFromFile**(`filePath`): `void`
425+
> **addWordFilterFromFile**(`filePath`, `inputAction?`, `outputAction?`, `inputEnabled?`, `outputEnabled?`): `void`
426426
427427
Adds a word filter to the guardrail.
428428

@@ -434,6 +434,22 @@ Adds a word filter to the guardrail.
434434

435435
The location of the word filter file.
436436

437+
##### inputAction?
438+
439+
[`GuardrailAction`](../enumerations/GuardrailAction.md)
440+
441+
##### outputAction?
442+
443+
[`GuardrailAction`](../enumerations/GuardrailAction.md)
444+
445+
##### inputEnabled?
446+
447+
`boolean`
448+
449+
##### outputEnabled?
450+
451+
`boolean`
452+
437453
#### Returns
438454

439455
`void`

apidocs/@cdklabs/namespaces/bedrock/classes/VectorKnowledgeBase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ The type of knowledge base.
195195

196196
### vectorStore
197197

198-
> `readonly` **vectorStore**: [`ExistingAmazonAuroraVectorStore`](../../amazonaurora/classes/ExistingAmazonAuroraVectorStore.md) \| [`AmazonAuroraVectorStore`](../../amazonaurora/classes/AmazonAuroraVectorStore.md) \| [`MongoDBAtlasVectorStore`](../../mongodbAtlas/classes/MongoDBAtlasVectorStore.md) \| [`VectorCollection`](../../opensearchserverless/classes/VectorCollection.md) \| [`PineconeVectorStore`](../../pinecone/classes/PineconeVectorStore.md)
198+
> `readonly` **vectorStore**: [`ExistingAmazonAuroraVectorStore`](../../amazonaurora/classes/ExistingAmazonAuroraVectorStore.md) \| [`AmazonAuroraVectorStore`](../../amazonaurora/classes/AmazonAuroraVectorStore.md) \| [`MongoDBAtlasVectorStore`](../../mongodbAtlas/classes/MongoDBAtlasVectorStore.md) \| [`VectorCollection`](../../opensearchserverless/classes/VectorCollection.md) \| [`OpenSearchManagedClusterVectorStore`](../../opensearchmanagedcluster/classes/OpenSearchManagedClusterVectorStore.md) \| [`PineconeVectorStore`](../../pinecone/classes/PineconeVectorStore.md)
199199
200200
The vector store for the knowledge base.
201201

apidocs/@cdklabs/namespaces/bedrock/enumerations/GuardrailAction.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ identifier tags (for example: [NAME-1], [NAME-2], [EMAIL-1], etc.).
2626
2727
If sensitive information is detected in the prompt or response, the guardrail
2828
blocks all the content and returns a message that you configure.
29+
30+
***
31+
32+
### NONE
33+
34+
> **NONE**: `"NONE"`
35+
36+
Do not take any action.

apidocs/@cdklabs/namespaces/bedrock/enumerations/ManagedWordFilterType.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
# Enumeration: ManagedWordFilterType
88

9-
The managed word type filter available for guardrails.
10-
119
## Enumeration Members
1210

1311
### PROFANITY

apidocs/@cdklabs/namespaces/bedrock/enumerations/VectorStoreType.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ This enum represents the different vector databases that can be used.
3939

4040
***
4141

42+
### OPENSEARCH\_MANAGED\_CLUSTER
43+
44+
> **OPENSEARCH\_MANAGED\_CLUSTER**: `"OPENSEARCH_MANAGED_CLUSTER"`
45+
46+
`OPENSEARCH_MANAGED_CLUSTER` is the vector store for OpenSearch Managed Cluster.
47+
48+
***
49+
4250
### OPENSEARCH\_SERVERLESS
4351

4452
> **OPENSEARCH\_SERVERLESS**: `"OPENSEARCH_SERVERLESS"`

0 commit comments

Comments
 (0)