Skip to content

Commit 4ee2eeb

Browse files
aws-rafamskrokoko
andauthored
chore(bedrock): prompt management minor update (#774)
* fix(bedrock): add Claude 3.5 v2 and remove old file * chore(build): fix self mutation * fix(bedrock): minor restructure on Prompt Management needed for Prompt Flows impl --------- Co-authored-by: Alain Krok <[email protected]>
1 parent 04e0f92 commit 4ee2eeb

File tree

12 files changed

+755
-82
lines changed

12 files changed

+755
-82
lines changed

apidocs/namespaces/bedrock/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
- [KnowledgeBase](classes/KnowledgeBase.md)
5555
- [ParsingStategy](classes/ParsingStategy.md)
5656
- [Prompt](classes/Prompt.md)
57+
- [PromptBase](classes/PromptBase.md)
5758
- [PromptVariant](classes/PromptVariant.md)
5859
- [PromptVersion](classes/PromptVersion.md)
5960
- [S3ApiSchema](classes/S3ApiSchema.md)
@@ -96,6 +97,7 @@
9697
- [KnowledgeBaseProps](interfaces/KnowledgeBaseProps.md)
9798
- [LambdaCustomTransformationProps](interfaces/LambdaCustomTransformationProps.md)
9899
- [PIIFilter](interfaces/PIIFilter.md)
100+
- [PromptAttributes](interfaces/PromptAttributes.md)
99101
- [PromptConfiguration](interfaces/PromptConfiguration.md)
100102
- [PromptOverrideConfiguration](interfaces/PromptOverrideConfiguration.md)
101103
- [PromptProps](interfaces/PromptProps.md)

apidocs/namespaces/bedrock/classes/Prompt.md

+37-7
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,26 @@ https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html
5050

5151
## Properties
5252

53-
### encryptionKey?
53+
### \_hash
5454

55-
> `readonly` `optional` **encryptionKey**: `IKey`
55+
> `protected` `readonly` **\_hash**: `string`
56+
57+
**`Internal`**
58+
59+
The computed hash of the prompt properties.
60+
61+
***
62+
63+
### kmsKey?
64+
65+
> `readonly` `optional` **kmsKey**: `IKey`
5666
5767
The KMS key that the prompt is encrypted with.
5868

69+
#### Implementation of
70+
71+
[`IPrompt`](../interfaces/IPrompt.md).[`kmsKey`](../interfaces/IPrompt.md#kmskey)
72+
5973
***
6074

6175
### node
@@ -114,6 +128,18 @@ The name of the prompt.
114128

115129
***
116130

131+
### promptVersion
132+
133+
> **promptVersion**: `string`
134+
135+
The version of the prompt.
136+
137+
#### Implementation of
138+
139+
[`IPrompt`](../interfaces/IPrompt.md).[`promptVersion`](../interfaces/IPrompt.md#promptversion)
140+
141+
***
142+
117143
### variants
118144

119145
> `readonly` **variants**: [`PromptVariant`](PromptVariant.md)[]
@@ -140,7 +166,7 @@ Adds a prompt variant.
140166

141167
### createVersion()
142168

143-
> **createVersion**(`description`?): `void`
169+
> **createVersion**(`description`?): `string`
144170
145171
Creates a prompt version, a static snapshot of your prompt that can be
146172
deployed to production.
@@ -151,7 +177,7 @@ deployed to production.
151177

152178
#### Returns
153179

154-
`void`
180+
`string`
155181

156182
***
157183

@@ -171,13 +197,17 @@ Returns a string representation of this construct.
171197

172198
***
173199

174-
### fromPromptArn()
200+
### fromPromptAttributes()
175201

176-
> `static` **fromPromptArn**(`promptArn`): [`IPrompt`](../interfaces/IPrompt.md)
202+
> `static` **fromPromptAttributes**(`scope`, `id`, `attrs`): [`IPrompt`](../interfaces/IPrompt.md)
177203
178204
#### Parameters
179205

180-
**promptArn**: `string`
206+
**scope**: `Construct`
207+
208+
**id**: `string`
209+
210+
**attrs**: [`PromptAttributes`](../interfaces/PromptAttributes.md)
181211

182212
#### Returns
183213

0 commit comments

Comments
 (0)