Skip to content

Commit ae7a3ad

Browse files
dineshSajwanDinesh Sajwangithub-actionskrokoko
authored
feat(construct): update bedrock to latest L1 constructs (#473)
--------- Signed-off-by: github-actions <[email protected]> Co-authored-by: Dinesh Sajwan <[email protected]> Co-authored-by: github-actions <[email protected]> Co-authored-by: Alain Krok <[email protected]>
1 parent 716c6e1 commit ae7a3ad

40 files changed

+2649
-32
lines changed

.projen/deps.json

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

.projen/tasks.json

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

.projenrc.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
const GITHUB_USER = 'awslabs';
3232
const PUBLICATION_NAMESPACE = 'cdklabs';
3333
const PROJECT_NAME = 'generative-ai-cdk-constructs';
34-
const CDK_VERSION: string = '2.141.0';
34+
const CDK_VERSION: string = '2.143.0';
3535

3636
const project = new awscdk.AwsCdkConstructLibrary({
3737
author: 'Amazon Web Services - Prototyping and Cloud Engineering',
@@ -59,6 +59,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
5959
'typedoc',
6060
'typedoc-plugin-markdown',
6161
'aws-sdk-mock',
62+
'@aws-cdk/assert',
6263
],
6364
deps: [
6465
'cdk-nag',

CHANGELOG.md

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

37
Based on CDK library version 2.141.0

apidocs/classes/bedrock.AgentActionGroup.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- [actionGroupState](bedrock.AgentActionGroup.md#actiongroupstate)
2525
- [apiSchema](bedrock.AgentActionGroup.md#apischema)
2626
- [description](bedrock.AgentActionGroup.md#description)
27+
- [functionSchema](bedrock.AgentActionGroup.md#functionschema)
2728
- [node](bedrock.AgentActionGroup.md#node)
2829
- [parentActionGroupSignature](bedrock.AgentActionGroup.md#parentactiongroupsignature)
2930
- [skipResourceInUseCheckOnDelete](bedrock.AgentActionGroup.md#skipresourceinusecheckondelete)
@@ -59,7 +60,7 @@ Construct.constructor
5960

6061
### actionGroupExecutor
6162

62-
`Readonly` **actionGroupExecutor**: `undefined` \| `IFunction`
63+
`Readonly` **actionGroupExecutor**: `undefined` \| [`ActionGroupExecutor`](../interfaces/bedrock.ActionGroupExecutor.md)
6364

6465
The Lambda function containing the business logic that is carried out upon invoking the action.
6566

@@ -105,6 +106,14 @@ The description.
105106

106107
___
107108

109+
### functionSchema
110+
111+
`Readonly` **functionSchema**: `undefined` \| `FunctionSchemaProperty`
112+
113+
A list of action groups associated with the agent
114+
115+
___
116+
108117
### node
109118

110119
`Readonly` **node**: `Node`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
[@cdklabs/generative-ai-cdk-constructs](../README.md) / [bedrock](../modules/bedrock.md) / ContentPolicyConfig
2+
3+
# Class: ContentPolicyConfig
4+
5+
[bedrock](../modules/bedrock.md).ContentPolicyConfig
6+
7+
## Hierarchy
8+
9+
- `Construct`
10+
11+
**`ContentPolicyConfig`**
12+
13+
## Table of contents
14+
15+
### Constructors
16+
17+
- [constructor](bedrock.ContentPolicyConfig.md#constructor)
18+
19+
### Properties
20+
21+
- [contentPolicyConfigList](bedrock.ContentPolicyConfig.md#contentpolicyconfiglist)
22+
- [node](bedrock.ContentPolicyConfig.md#node)
23+
24+
### Methods
25+
26+
- [createContentFilterConfig](bedrock.ContentPolicyConfig.md#createcontentfilterconfig)
27+
- [createContentPolicyConfigList](bedrock.ContentPolicyConfig.md#createcontentpolicyconfiglist)
28+
- [toString](bedrock.ContentPolicyConfig.md#tostring)
29+
- [isConstruct](bedrock.ContentPolicyConfig.md#isconstruct)
30+
31+
## Constructors
32+
33+
### constructor
34+
35+
**new ContentPolicyConfig**(`scope`, `id`, `props?`): [`ContentPolicyConfig`](bedrock.ContentPolicyConfig.md)
36+
37+
#### Parameters
38+
39+
| Name | Type |
40+
| :------ | :------ |
41+
| `scope` | `Construct` |
42+
| `id` | `string` |
43+
| `props?` | [`ContentPolicyConfigProps`](../interfaces/bedrock.ContentPolicyConfigProps.md)[] |
44+
45+
#### Returns
46+
47+
[`ContentPolicyConfig`](bedrock.ContentPolicyConfig.md)
48+
49+
#### Overrides
50+
51+
Construct.constructor
52+
53+
## Properties
54+
55+
### contentPolicyConfigList
56+
57+
`Readonly` **contentPolicyConfigList**: `ContentFilterConfigProperty`[]
58+
59+
___
60+
61+
### node
62+
63+
`Readonly` **node**: `Node`
64+
65+
The tree node.
66+
67+
#### Inherited from
68+
69+
Construct.node
70+
71+
## Methods
72+
73+
### createContentFilterConfig
74+
75+
**createContentFilterConfig**(`prop`): `ContentFilterConfigProperty`
76+
77+
#### Parameters
78+
79+
| Name | Type |
80+
| :------ | :------ |
81+
| `prop` | [`ContentPolicyConfigProps`](../interfaces/bedrock.ContentPolicyConfigProps.md) |
82+
83+
#### Returns
84+
85+
`ContentFilterConfigProperty`
86+
87+
___
88+
89+
### createContentPolicyConfigList
90+
91+
**createContentPolicyConfigList**(`props?`): `ContentFilterConfigProperty`[]
92+
93+
#### Parameters
94+
95+
| Name | Type |
96+
| :------ | :------ |
97+
| `props?` | [`ContentPolicyConfigProps`](../interfaces/bedrock.ContentPolicyConfigProps.md)[] |
98+
99+
#### Returns
100+
101+
`ContentFilterConfigProperty`[]
102+
103+
___
104+
105+
### toString
106+
107+
**toString**(): `string`
108+
109+
Returns a string representation of this construct.
110+
111+
#### Returns
112+
113+
`string`
114+
115+
#### Inherited from
116+
117+
Construct.toString
118+
119+
___
120+
121+
### isConstruct
122+
123+
**isConstruct**(`x`): x is Construct
124+
125+
Checks if `x` is a construct.
126+
127+
Use this method instead of `instanceof` to properly detect `Construct`
128+
instances, even when the construct library is symlinked.
129+
130+
Explanation: in JavaScript, multiple copies of the `constructs` library on
131+
disk are seen as independent, completely different libraries. As a
132+
consequence, the class `Construct` in each copy of the `constructs` library
133+
is seen as a different class, and an instance of one class will not test as
134+
`instanceof` the other class. `npm install` will not create installations
135+
like this, but users may manually symlink construct libraries together or
136+
use a monorepo tool: in those cases, multiple copies of the `constructs`
137+
library can be accidentally installed, and `instanceof` will behave
138+
unpredictably. It is safest to avoid using `instanceof`, and using
139+
this type-testing method instead.
140+
141+
#### Parameters
142+
143+
| Name | Type | Description |
144+
| :------ | :------ | :------ |
145+
| `x` | `any` | Any object |
146+
147+
#### Returns
148+
149+
x is Construct
150+
151+
true if `x` is an object created from a class which extends `Construct`.
152+
153+
#### Inherited from
154+
155+
Construct.isConstruct

0 commit comments

Comments
 (0)