Skip to content

Commit 4e848bb

Browse files
authored
feat(bedrock): add guardrail support for agents (#564)
1 parent fab3bba commit 4e848bb

23 files changed

+13434
-978
lines changed

Diff for: .eslintrc.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .github/workflows/build.yml

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .github/workflows/pull-request-lint.yml

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .github/workflows/release.yml

+24-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .github/workflows/upgrade-main.yml

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .npmignore

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .projen/deps.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .projen/tasks.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .projenrc.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import {
3030
const GITHUB_USER = 'awslabs';
3131
const PUBLICATION_NAMESPACE = 'cdklabs';
3232
const PROJECT_NAME = 'generative-ai-cdk-constructs';
33-
const CDK_VERSION: string = '2.143.0';
33+
const CDK_VERSION: string = '2.149.0';
3434

3535
function camelCaseIt(input: string): string {
3636
// Hypens and dashes to spaces and then CamelCase...
@@ -43,10 +43,10 @@ const project = new awscdk.AwsCdkConstructLibrary({
4343
authorOrganization: true,
4444
description: 'AWS Generative AI CDK Constructs is a library for well-architected generative AI patterns.',
4545
cdkVersion: CDK_VERSION,
46-
projenVersion: '~0.78.8',
46+
projenVersion: '~0.84.5',
4747
constructsVersion: '10.3.0',
4848
defaultReleaseBranch: 'main',
49-
jsiiVersion: '~5.3.0',
49+
jsiiVersion: '~5.4.0',
5050
name: '@' + PUBLICATION_NAMESPACE + '/' + PROJECT_NAME,
5151
projenrcTs: true,
5252
repositoryUrl: 'https://github.com/' + GITHUB_USER + '/' + PROJECT_NAME,
@@ -158,6 +158,7 @@ project.github?.actions.set('actions/stale@v4', 'actions/stale@a20b814fb01b71def
158158
project.github?.actions.set('actions/upload-artifact@v3', 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34'); // https://github.com/projen/projen/issues/3529
159159
project.github?.actions.set('actions/upload-artifact@v4', 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34');
160160
project.github?.actions.set('amannn/[email protected]', 'amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb');
161+
project.github?.actions.set('amannn/[email protected]', 'amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f');
161162
project.github?.actions.set('aws-github-ops/github-merit-badger@main', 'aws-github-ops/github-merit-badger@70d1c47f7051d6e324d4ddc48d676ba61ef69a3e');
162163
project.github?.actions.set('codecov/codecov-action@v3', 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed'); // https://github.com/projen/projen/issues/3529
163164
project.github?.actions.set('codecov/codecov-action@v4', 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed');
@@ -168,6 +169,7 @@ project.github?.actions.set('oss-review-toolkit/ort-ci-github-action@v1', 'oss-r
168169
project.github?.actions.set('peter-evans/create-issue-from-file@v4', 'peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f');
169170
project.github?.actions.set('peter-evans/create-pull-request@v4', 'peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54');
170171
project.github?.actions.set('peter-evans/create-pull-request@v5', 'peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38');
172+
project.github?.actions.set('peter-evans/create-pull-request@v6', 'peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50');
171173
project.github?.actions.set('aws-actions/[email protected]', 'aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502');
172174

173175
// We don't want to package certain things

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# CDK Generative AI Constructs V0.1.213 (2024-07-18)
2+
3+
Based on CDK library version 2.149.0
4+
15
# CDK Generative AI Constructs V0.1.165 (2024-05-30)
26

37
Based on CDK library version 2.143.0

Diff for: apidocs/interfaces/DockerLambdaCustomProps.md

+6-24
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ stable
2828

2929
***
3030

31-
### applicationLogLevel?
31+
### applicationLogLevelV2?
3232

33-
> `readonly` `optional` **applicationLogLevel**: `string`
33+
> `readonly` `optional` **applicationLogLevelV2**: `ApplicationLogLevel`
3434
3535
Sets the application log level for the function.
3636

3737
#### Default
3838

3939
```ts
40-
"INFO"
40+
ApplicationLogLevel.INFO
4141
```
4242

4343
#### Stability
@@ -318,24 +318,6 @@ stable
318318

319319
***
320320

321-
### logFormat?
322-
323-
> `readonly` `optional` **logFormat**: `string`
324-
325-
Sets the logFormat for the function.
326-
327-
#### Default
328-
329-
```ts
330-
"Text"
331-
```
332-
333-
#### Stability
334-
335-
stable
336-
337-
***
338-
339321
### logGroup?
340322

341323
> `readonly` `optional` **logGroup**: `ILogGroup`
@@ -658,16 +640,16 @@ stable
658640

659641
***
660642

661-
### systemLogLevel?
643+
### systemLogLevelV2?
662644

663-
> `readonly` `optional` **systemLogLevel**: `string`
645+
> `readonly` `optional` **systemLogLevelV2**: `SystemLogLevel`
664646
665647
Sets the system log level for the function.
666648

667649
#### Default
668650

669651
```ts
670-
"INFO"
652+
SystemLogLevel.INFO
671653
```
672654

673655
#### Stability

Diff for: apidocs/namespaces/bedrock/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
- [ApiSchemaConfig](interfaces/ApiSchemaConfig.md)
5353
- [BedrockFoundationModelProps](interfaces/BedrockFoundationModelProps.md)
5454
- [ContentPolicyConfigProps](interfaces/ContentPolicyConfigProps.md)
55+
- [GuardrailConfiguration](interfaces/GuardrailConfiguration.md)
5556
- [GuardrailProps](interfaces/GuardrailProps.md)
5657
- [InferenceConfiguration](interfaces/InferenceConfiguration.md)
5758
- [KnowledgeBaseProps](interfaces/KnowledgeBaseProps.md)

0 commit comments

Comments
 (0)