Skip to content

Commit 57289aa

Browse files
Merge pull request #275 from awslabs/feat/website_docs
feat: add website documentation site
2 parents 56a8bb0 + c1dde0e commit 57289aa

File tree

98 files changed

+28614
-0
lines changed

Some content is hidden

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

98 files changed

+28614
-0
lines changed

website/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.docusaurus
2+
build

website/README.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Website
2+
3+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn install
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn run start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn run build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Testing your Build Locally
28+
It is important to test your build locally before deploying it for production. Docusaurus provides a docusaurus serve command for that:
29+
30+
```
31+
$ yarn run serve
32+
```
33+
34+
By default, this will load your site at http://localhost:3000/.
35+
36+
### Deployment
37+
38+
Deployment of this site is done through GitHub workflows.

website/babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};
+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[@cdklabs/generative-ai-cdk-constructs](/docs/api) / ContainerImage
2+
3+
# Class: ContainerImage
4+
5+
https://github.com/aws/deep-learning-containers/blob/master/available_images.md
6+
7+
## Hierarchy
8+
9+
- **`ContainerImage`**
10+
11+
[`DeepLearningContainerImage`](DeepLearningContainerImage.md)
12+
13+
## Constructors
14+
15+
### constructor
16+
17+
**new ContainerImage**(): [`ContainerImage`](ContainerImage.md)
18+
19+
#### Returns
20+
21+
[`ContainerImage`](ContainerImage.md)
22+
23+
## Methods
24+
25+
### bind
26+
27+
**bind**(`scope`, `grantable`): [`ContainerImageConfig`](/docs/api/interfaces/ContainerImageConfig.md)
28+
29+
#### Parameters
30+
31+
| Name | Type |
32+
| :------ | :------ |
33+
| `scope` | `Construct` |
34+
| `grantable` | `IGrantable` |
35+
36+
#### Returns
37+
38+
[`ContainerImageConfig`](/docs/api/interfaces/ContainerImageConfig.md)
39+
40+
___
41+
42+
### fromAsset
43+
44+
**fromAsset**(`directory`, `options?`): [`ContainerImage`](ContainerImage.md)
45+
46+
#### Parameters
47+
48+
| Name | Type |
49+
| :------ | :------ |
50+
| `directory` | `string` |
51+
| `options` | `DockerImageAssetOptions` |
52+
53+
#### Returns
54+
55+
[`ContainerImage`](ContainerImage.md)
56+
57+
___
58+
59+
### fromEcrRepository
60+
61+
**fromEcrRepository**(`repository`, `tag?`): [`ContainerImage`](ContainerImage.md)
62+
63+
#### Parameters
64+
65+
| Name | Type | Default value |
66+
| :------ | :------ | :------ |
67+
| `repository` | `IRepository` | `undefined` |
68+
| `tag` | `string` | `'latest'` |
69+
70+
#### Returns
71+
72+
[`ContainerImage`](ContainerImage.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
[@cdklabs/generative-ai-cdk-constructs](/docs/api) / CustomSageMakerEndpoint
2+
3+
# Class: CustomSageMakerEndpoint
4+
5+
## Hierarchy
6+
7+
- [`SageMakerEndpointBase`](SageMakerEndpointBase.md)
8+
9+
**`CustomSageMakerEndpoint`**
10+
11+
## Implements
12+
13+
- `IGrantable`
14+
15+
## Constructors
16+
17+
### constructor
18+
19+
**new CustomSageMakerEndpoint**(`scope`, `id`, `props`): [`CustomSageMakerEndpoint`](CustomSageMakerEndpoint.md)
20+
21+
#### Parameters
22+
23+
| Name | Type |
24+
| :------ |:---------------------------------------------------------------------------------------|
25+
| `scope` | `Construct` |
26+
| `id` | `string` |
27+
| `props` | [`CustomSageMakerEndpointProps`](/docs/api/interfaces/CustomSageMakerEndpointProps.md) |
28+
29+
#### Returns
30+
31+
[`CustomSageMakerEndpoint`](/docs/api/classes/CustomSageMakerEndpoint)
32+
33+
#### Overrides
34+
35+
[SageMakerEndpointBase](SageMakerEndpointBase.md).[constructor](SageMakerEndpointBase.md#constructor)
36+
37+
## Properties
38+
39+
### cfnEndpoint
40+
41+
`Readonly` **cfnEndpoint**: `CfnEndpoint`
42+
43+
___
44+
45+
### cfnEndpointConfig
46+
47+
`Readonly` **cfnEndpointConfig**: `CfnEndpointConfig`
48+
49+
___
50+
51+
### cfnModel
52+
53+
`Readonly` **cfnModel**: `CfnModel`
54+
55+
___
56+
57+
### endpointArn
58+
59+
`Readonly` **endpointArn**: `string`
60+
61+
___
62+
63+
### environment
64+
65+
`Private` `Optional` `Readonly` **environment**: `Object`
66+
67+
#### Index signature
68+
69+
[key: `string`]: `string`
70+
71+
___
72+
73+
### grantPrincipal
74+
75+
`Readonly` **grantPrincipal**: `IPrincipal`
76+
77+
#### Implementation of
78+
79+
iam.IGrantable.grantPrincipal
80+
81+
___
82+
83+
### instanceCount
84+
85+
`Readonly` **instanceCount**: `number`
86+
87+
___
88+
89+
### instanceType
90+
91+
`Optional` `Readonly` **instanceType**: [`SageMakerInstanceType`](SageMakerInstanceType.md)
92+
93+
___
94+
95+
### modelDataDownloadTimeoutInSeconds
96+
97+
`Readonly` **modelDataDownloadTimeoutInSeconds**: `number`
98+
99+
___
100+
101+
### modelDataUrl
102+
103+
`Readonly` **modelDataUrl**: `string`
104+
105+
___
106+
107+
### modelId
108+
109+
`Readonly` **modelId**: `string`
110+
111+
___
112+
113+
### node
114+
115+
`Readonly` **node**: `Node`
116+
117+
The tree node.
118+
119+
#### Inherited from
120+
121+
[SageMakerEndpointBase](SageMakerEndpointBase.md).[node](SageMakerEndpointBase.md#node)
122+
123+
___
124+
125+
### role
126+
127+
`Readonly` **role**: `Role`
128+
129+
___
130+
131+
### startupHealthCheckTimeoutInSeconds
132+
133+
`Private` `Readonly` **startupHealthCheckTimeoutInSeconds**: `number`
134+
135+
___
136+
137+
### volumeSizeInGb
138+
139+
`Optional` `Readonly` **volumeSizeInGb**: `number`
140+
141+
## Methods
142+
143+
### addToRolePolicy
144+
145+
**addToRolePolicy**(`statement`): `void`
146+
147+
#### Parameters
148+
149+
| Name | Type |
150+
| :------ | :------ |
151+
| `statement` | `PolicyStatement` |
152+
153+
#### Returns
154+
155+
`void`
156+
157+
___
158+
159+
### createSageMakerRole
160+
161+
**createSageMakerRole**(): `Role`
162+
163+
#### Returns
164+
165+
`Role`
166+
167+
#### Inherited from
168+
169+
[SageMakerEndpointBase](SageMakerEndpointBase.md).[createSageMakerRole](SageMakerEndpointBase.md#createsagemakerrole)
170+
171+
___
172+
173+
### grantInvoke
174+
175+
**grantInvoke**(`grantee`): `Grant`
176+
177+
#### Parameters
178+
179+
| Name | Type |
180+
| :------ | :------ |
181+
| `grantee` | `IGrantable` |
182+
183+
#### Returns
184+
185+
`Grant`
186+
187+
___
188+
189+
### toString
190+
191+
**toString**(): `string`
192+
193+
Returns a string representation of this construct.
194+
195+
#### Returns
196+
197+
`string`
198+
199+
#### Inherited from
200+
201+
[SageMakerEndpointBase](SageMakerEndpointBase.md).[toString](SageMakerEndpointBase.md#tostring)
202+
203+
___
204+
205+
### isConstruct
206+
207+
**isConstruct**(`x`): x is Construct
208+
209+
Checks if `x` is a construct.
210+
211+
Use this method instead of `instanceof` to properly detect `Construct`
212+
instances, even when the construct library is symlinked.
213+
214+
Explanation: in JavaScript, multiple copies of the `constructs` library on
215+
disk are seen as independent, completely different libraries. As a
216+
consequence, the class `Construct` in each copy of the `constructs` library
217+
is seen as a different class, and an instance of one class will not test as
218+
`instanceof` the other class. `npm install` will not create installations
219+
like this, but users may manually symlink construct libraries together or
220+
use a monorepo tool: in those cases, multiple copies of the `constructs`
221+
library can be accidentally installed, and `instanceof` will behave
222+
unpredictably. It is safest to avoid using `instanceof`, and using
223+
this type-testing method instead.
224+
225+
#### Parameters
226+
227+
| Name | Type | Description |
228+
| :------ | :------ | :------ |
229+
| `x` | `any` | Any object |
230+
231+
#### Returns
232+
233+
x is Construct
234+
235+
true if `x` is an object created from a class which extends `Construct`.
236+
237+
#### Inherited from
238+
239+
[SageMakerEndpointBase](SageMakerEndpointBase.md).[isConstruct](SageMakerEndpointBase.md#isconstruct)

0 commit comments

Comments
 (0)