Skip to content

Commit 0c6cb31

Browse files
dineshSajwanDinesh Sajwankrokokogithub-actions
authored
feat(Construct): replace custom resource with bedrock L1 constructs (#414)
feat(construct): updated bedrock CFN l1 construct and removed custom resources --------- Signed-off-by: github-actions <[email protected]> Co-authored-by: Dinesh Sajwan <[email protected]> Co-authored-by: krokoko <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent 1ceb3f9 commit 0c6cb31

File tree

60 files changed

+1344
-4445
lines changed

Some content is hidden

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

60 files changed

+1344
-4445
lines changed

.projen/deps.json

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

.projenrc.ts

+1-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.122.0';
34+
const CDK_VERSION: string = '2.141.0';
3535

3636
const project = new awscdk.AwsCdkConstructLibrary({
3737
author: 'Amazon Web Services - Prototyping and Cloud Engineering',

CHANGELOG.md

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

37
Based on CDK library version 2.122.0

DEVELOPER_GUIDE.md

+1-1
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.122.0) >= 2.122.0
19+
- [AWS CDK](https://github.com/aws/aws-cdk/releases/tag/v2.141.0) >= 2.141.0
2020
- [Python](https://www.python.org/downloads/) >=3.9
2121
- [Projen](https://github.com/projen/projen) >= 0.78.8
2222
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/cli/install/) >= 1.22.19

apidocs/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
- [opensearch\_vectorindex](modules/opensearch_vectorindex.md)
1212
- [opensearchserverless](modules/opensearchserverless.md)
1313
- [pinecone](modules/pinecone.md)
14-
- [redisenterprisecloud](modules/redisenterprisecloud.md)
1514

1615
### Enumerations
1716

apidocs/classes/bedrock.Agent.md

+96-23
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ Deploy a Bedrock Agent.
1212

1313
**`Agent`**
1414

15-
## Implements
16-
17-
- `ITaggableV2`
18-
1915
## Table of contents
2016

2117
### Constructors
@@ -24,23 +20,28 @@ Deploy a Bedrock Agent.
2420

2521
### Properties
2622

23+
- [actionGroups](bedrock.Agent.md#actiongroups)
2724
- [agentArn](bedrock.Agent.md#agentarn)
2825
- [agentId](bedrock.Agent.md#agentid)
26+
- [agentInstance](bedrock.Agent.md#agentinstance)
27+
- [agentversion](bedrock.Agent.md#agentversion)
2928
- [aliasArn](bedrock.Agent.md#aliasarn)
3029
- [aliasId](bedrock.Agent.md#aliasid)
3130
- [aliasName](bedrock.Agent.md#aliasname)
32-
- [cdkTagManager](bedrock.Agent.md#cdktagmanager)
31+
- [knowledgeBases](bedrock.Agent.md#knowledgebases)
3332
- [name](bedrock.Agent.md#name)
3433
- [node](bedrock.Agent.md#node)
3534
- [resourceUpdates](bedrock.Agent.md#resourceupdates)
3635
- [role](bedrock.Agent.md#role)
37-
- [shouldPrepareAgent](bedrock.Agent.md#shouldprepareagent)
3836

3937
### Methods
4038

4139
- [\_addAliasDependency](bedrock.Agent.md#_addaliasdependency)
4240
- [addActionGroup](bedrock.Agent.md#addactiongroup)
41+
- [addActionGroups](bedrock.Agent.md#addactiongroups)
4342
- [addAlias](bedrock.Agent.md#addalias)
43+
- [addKnowledgeBase](bedrock.Agent.md#addknowledgebase)
44+
- [addKnowledgeBases](bedrock.Agent.md#addknowledgebases)
4445
- [toString](bedrock.Agent.md#tostring)
4546
- [isConstruct](bedrock.Agent.md#isconstruct)
4647

@@ -68,6 +69,14 @@ Construct.constructor
6869

6970
## Properties
7071

72+
### actionGroups
73+
74+
`Private` **actionGroups**: `AgentActionGroupProperty`[] = `[]`
75+
76+
A list of action groups associated with the agent
77+
78+
___
79+
7180
### agentArn
7281

7382
`Readonly` **agentArn**: `string`
@@ -84,6 +93,22 @@ The unique identifier of the agent.
8493

8594
___
8695

96+
### agentInstance
97+
98+
`Readonly` **agentInstance**: `CfnAgent`
99+
100+
Instance of Agent
101+
102+
___
103+
104+
### agentversion
105+
106+
`Readonly` **agentversion**: `string`
107+
108+
The version for the agent
109+
110+
___
111+
87112
### aliasArn
88113

89114
`Optional` `Readonly` **aliasArn**: `string`
@@ -108,15 +133,17 @@ The name for the agent alias.
108133

109134
___
110135

111-
### cdkTagManager
136+
### knowledgeBases
112137

113-
`Readonly` **cdkTagManager**: `TagManager`
138+
**knowledgeBases**: `AgentKnowledgeBaseProperty`[] = `[]`
114139

115-
TagManager facilitates a common implementation of tagging for Constructs
140+
A list of KnowledgeBases associated with the agent.
116141

117-
#### Implementation of
142+
**`Default`**
118143

119-
cdk.ITaggableV2.cdkTagManager
144+
```ts
145+
- No knowledge base is used.
146+
```
120147

121148
___
122149

@@ -154,14 +181,6 @@ ___
154181

155182
The IAM role for the agent.
156183

157-
___
158-
159-
### shouldPrepareAgent
160-
161-
`Private` `Readonly` **shouldPrepareAgent**: `boolean`
162-
163-
If prepare agent should be called on resource updates.
164-
165184
## Methods
166185

167186
### \_addAliasDependency
@@ -184,19 +203,37 @@ ___
184203

185204
### addActionGroup
186205

187-
**addActionGroup**(`props`): [`AgentActionGroup`](bedrock.AgentActionGroup.md)
206+
**addActionGroup**(`actionGroup`): `void`
188207

189-
Add an action group to the agent.
208+
Add action group to the agent.
190209

191210
#### Parameters
192211

193212
| Name | Type |
194213
| :------ | :------ |
195-
| `props` | [`AddAgentActionGroupProps`](../interfaces/bedrock.AddAgentActionGroupProps.md) |
214+
| `actionGroup` | [`AgentActionGroup`](bedrock.AgentActionGroup.md) |
196215

197216
#### Returns
198217

199-
[`AgentActionGroup`](bedrock.AgentActionGroup.md)
218+
`void`
219+
220+
___
221+
222+
### addActionGroups
223+
224+
**addActionGroups**(`actionGroups`): `void`
225+
226+
Add action groups to the agent.
227+
228+
#### Parameters
229+
230+
| Name | Type |
231+
| :------ | :------ |
232+
| `actionGroups` | [`AgentActionGroup`](bedrock.AgentActionGroup.md)[] |
233+
234+
#### Returns
235+
236+
`void`
200237

201238
___
202239

@@ -218,6 +255,42 @@ Add an alias to the agent.
218255

219256
___
220257

258+
### addKnowledgeBase
259+
260+
**addKnowledgeBase**(`knowledgeBase`): `void`
261+
262+
Add knowledge base to the agent.
263+
264+
#### Parameters
265+
266+
| Name | Type |
267+
| :------ | :------ |
268+
| `knowledgeBase` | [`KnowledgeBase`](bedrock.KnowledgeBase.md) |
269+
270+
#### Returns
271+
272+
`void`
273+
274+
___
275+
276+
### addKnowledgeBases
277+
278+
**addKnowledgeBases**(`knowledgeBases`): `void`
279+
280+
Add knowledge bases to the agent.
281+
282+
#### Parameters
283+
284+
| Name | Type |
285+
| :------ | :------ |
286+
| `knowledgeBases` | [`KnowledgeBase`](bedrock.KnowledgeBase.md)[] |
287+
288+
#### Returns
289+
290+
`void`
291+
292+
___
293+
221294
### toString
222295

223296
**toString**(): `string`

apidocs/classes/bedrock.AgentActionGroup.md

+72-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@
1818

1919
### Properties
2020

21-
- [actionGroupId](bedrock.AgentActionGroup.md#actiongroupid)
21+
- [actionGroupExecutor](bedrock.AgentActionGroup.md#actiongroupexecutor)
22+
- [actionGroupName](bedrock.AgentActionGroup.md#actiongroupname)
23+
- [actionGroupProperty](bedrock.AgentActionGroup.md#actiongroupproperty)
24+
- [actionGroupState](bedrock.AgentActionGroup.md#actiongroupstate)
25+
- [apiSchema](bedrock.AgentActionGroup.md#apischema)
26+
- [description](bedrock.AgentActionGroup.md#description)
2227
- [node](bedrock.AgentActionGroup.md#node)
28+
- [parentActionGroupSignature](bedrock.AgentActionGroup.md#parentactiongroupsignature)
29+
- [skipResourceInUseCheckOnDelete](bedrock.AgentActionGroup.md#skipresourceinusecheckondelete)
2330

2431
### Methods
2532

@@ -50,14 +57,54 @@ Construct.constructor
5057

5158
## Properties
5259

53-
### actionGroupId
60+
### actionGroupExecutor
5461

55-
`Readonly` **actionGroupId**: `string`
62+
`Readonly` **actionGroupExecutor**: `undefined` \| `IFunction`
63+
64+
The Lambda function containing the business logic that is carried out upon invoking the action.
65+
66+
___
67+
68+
### actionGroupName
69+
70+
`Readonly` **actionGroupName**: `string`
5671

5772
The unique identifier of the action group.
5873

5974
___
6075

76+
### actionGroupProperty
77+
78+
`Readonly` **actionGroupProperty**: `AgentActionGroupProperty`
79+
80+
The action group.
81+
82+
___
83+
84+
### actionGroupState
85+
86+
`Readonly` **actionGroupState**: `undefined` \| `string`
87+
88+
The action group state.
89+
90+
___
91+
92+
### apiSchema
93+
94+
`Readonly` **apiSchema**: `undefined` \| [`ApiSchemaConfig`](../interfaces/bedrock.ApiSchemaConfig.md)
95+
96+
The API schema.
97+
98+
___
99+
100+
### description
101+
102+
`Readonly` **description**: `undefined` \| `string`
103+
104+
The description.
105+
106+
___
107+
61108
### node
62109

63110
`Readonly` **node**: `Node`
@@ -68,6 +115,28 @@ The tree node.
68115

69116
Construct.node
70117

118+
___
119+
120+
### parentActionGroupSignature
121+
122+
`Readonly` **parentActionGroupSignature**: `undefined` \| `string`
123+
124+
The parent action group signature.
125+
126+
___
127+
128+
### skipResourceInUseCheckOnDelete
129+
130+
`Readonly` **skipResourceInUseCheckOnDelete**: `undefined` \| `boolean`
131+
132+
The skip resource in use check on delete.
133+
134+
**`Default`**
135+
136+
```ts
137+
- false
138+
```
139+
71140
## Methods
72141

73142
### toString

apidocs/classes/bedrock.AgentAlias.md

-17
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111
**`AgentAlias`**
1212

13-
## Implements
14-
15-
- `ITaggableV2`
16-
1713
## Table of contents
1814

1915
### Constructors
@@ -25,7 +21,6 @@
2521
- [aliasArn](bedrock.AgentAlias.md#aliasarn)
2622
- [aliasId](bedrock.AgentAlias.md#aliasid)
2723
- [aliasName](bedrock.AgentAlias.md#aliasname)
28-
- [cdkTagManager](bedrock.AgentAlias.md#cdktagmanager)
2924
- [node](bedrock.AgentAlias.md#node)
3025

3126
### Methods
@@ -81,18 +76,6 @@ The name for the agent alias.
8176

8277
___
8378

84-
### cdkTagManager
85-
86-
`Readonly` **cdkTagManager**: `TagManager`
87-
88-
TagManager facilitates a common implementation of tagging for Constructs
89-
90-
#### Implementation of
91-
92-
cdk.ITaggableV2.cdkTagManager
93-
94-
___
95-
9679
### node
9780

9881
`Readonly` **node**: `Node`

0 commit comments

Comments
 (0)