-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into contextual_grounding
- Loading branch information
Showing
9 changed files
with
906 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../README.md) / BedrockCwDashboard | ||
|
||
# Class: BedrockCwDashboard | ||
|
||
The BedrockCwDashboard class. | ||
|
||
## Extends | ||
|
||
- `Construct` | ||
|
||
## Constructors | ||
|
||
### new BedrockCwDashboard() | ||
|
||
> **new BedrockCwDashboard**(`scope`, `id`, `props`): [`BedrockCwDashboard`](BedrockCwDashboard.md) | ||
Constructs a new instance of the BedrockCwDashboard class. | ||
|
||
#### Parameters | ||
|
||
• **scope**: `Construct` | ||
|
||
represents the scope for all the resources. | ||
|
||
• **id**: `string` | ||
|
||
this is a a scope-unique id. | ||
|
||
• **props**: [`BedrockCwDashboardProps`](../interfaces/BedrockCwDashboardProps.md) | ||
|
||
user provided props for the construct. | ||
|
||
#### Returns | ||
|
||
[`BedrockCwDashboard`](BedrockCwDashboard.md) | ||
|
||
#### Since | ||
|
||
0.0.0 | ||
|
||
#### Overrides | ||
|
||
`Construct.constructor` | ||
|
||
## Properties | ||
|
||
### dashboard | ||
|
||
> `readonly` **dashboard**: `Dashboard` | ||
Returns the instance of CloudWatch dashboard used by the construct | ||
|
||
*** | ||
|
||
### node | ||
|
||
> `readonly` **node**: `Node` | ||
The tree node. | ||
|
||
#### Inherited from | ||
|
||
`Construct.node` | ||
|
||
## Methods | ||
|
||
### addAllModelsMonitoring() | ||
|
||
> **addAllModelsMonitoring**(`props`): `void` | ||
#### Parameters | ||
|
||
• **props**: [`ModelMonitoringProps`](../interfaces/ModelMonitoringProps.md) | ||
|
||
#### Returns | ||
|
||
`void` | ||
|
||
*** | ||
|
||
### addModelMonitoring() | ||
|
||
> **addModelMonitoring**(`modelName`, `modelId`, `props`): `void` | ||
#### Parameters | ||
|
||
• **modelName**: `string` | ||
|
||
• **modelId**: `string` | ||
|
||
• **props**: [`ModelMonitoringProps`](../interfaces/ModelMonitoringProps.md) | ||
|
||
#### Returns | ||
|
||
`void` | ||
|
||
*** | ||
|
||
### toString() | ||
|
||
> **toString**(): `string` | ||
Returns a string representation of this construct. | ||
|
||
#### Returns | ||
|
||
`string` | ||
|
||
#### Inherited from | ||
|
||
`Construct.toString` | ||
|
||
*** | ||
|
||
### isConstruct() | ||
|
||
> `static` **isConstruct**(`x`): `x is Construct` | ||
Checks if `x` is a construct. | ||
|
||
Use this method instead of `instanceof` to properly detect `Construct` | ||
instances, even when the construct library is symlinked. | ||
|
||
Explanation: in JavaScript, multiple copies of the `constructs` library on | ||
disk are seen as independent, completely different libraries. As a | ||
consequence, the class `Construct` in each copy of the `constructs` library | ||
is seen as a different class, and an instance of one class will not test as | ||
`instanceof` the other class. `npm install` will not create installations | ||
like this, but users may manually symlink construct libraries together or | ||
use a monorepo tool: in those cases, multiple copies of the `constructs` | ||
library can be accidentally installed, and `instanceof` will behave | ||
unpredictably. It is safest to avoid using `instanceof`, and using | ||
this type-testing method instead. | ||
|
||
#### Parameters | ||
|
||
• **x**: `any` | ||
|
||
Any object | ||
|
||
#### Returns | ||
|
||
`x is Construct` | ||
|
||
true if `x` is an object created from a class which extends `Construct`. | ||
|
||
#### Inherited from | ||
|
||
`Construct.isConstruct` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../README.md) / BedrockCwDashboardProps | ||
|
||
# Interface: BedrockCwDashboardProps | ||
|
||
The properties for the BedrockCwDashboardProps class. | ||
|
||
## Properties | ||
|
||
### dashboardName? | ||
|
||
> `readonly` `optional` **dashboardName**: `string` | ||
Optional A name for the dashboard which will be created. | ||
If existingDashboard is defined, this value will be ignored. | ||
If not provided, the construct will create a new dashboard named 'BedrockMetricsDashboard' | ||
|
||
#### Default | ||
|
||
```ts | ||
- none | ||
``` | ||
|
||
*** | ||
|
||
### existingDashboard? | ||
|
||
> `readonly` `optional` **existingDashboard**: `Dashboard` | ||
Optional An existing dashboard where metrics will be added to. | ||
If not provided, the construct will create a new dashboard | ||
|
||
#### Default | ||
|
||
```ts | ||
- none | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[**@cdklabs/generative-ai-cdk-constructs**](../README.md) • **Docs** | ||
|
||
*** | ||
|
||
[@cdklabs/generative-ai-cdk-constructs](../README.md) / ModelMonitoringProps | ||
|
||
# Interface: ModelMonitoringProps | ||
|
||
The properties for the ModelMonitoringProps class. | ||
|
||
## Properties | ||
|
||
### period? | ||
|
||
> `readonly` `optional` **period**: `Duration` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.