@awsless/awsless 0.0.207 → 0.0.209

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -6,8 +6,6 @@
6
6
  - add check for conflicting types inside graphql (Like duplicate type names)
7
7
  - Types should probably only allowed to defined once. And should be extended after that.
8
8
 
9
- -
10
-
11
9
  ---
12
10
  ---
13
11
  ---
@@ -91,17 +89,29 @@ We use AWS S3 to provide serverless key-value storage.
91
89
 
92
90
  ## Caches
93
91
 
94
- We use AWS MemoryDB to provide __redis compatible__ in-memory storage.
92
+ We use AWS MemoryDB to provide a __redis compatible__ in-memory storage.
95
93
 
96
- _WORK IN PROGRESS..._
94
+ ```json
95
+ {
96
+ "caches": {
97
+ "CACHE_NAME": {
98
+ "type": "t4g.small"
99
+ }
100
+ }
101
+ }
102
+ ```
97
103
 
98
104
  ## Searchs
99
105
 
100
- We use AWS Open Search Serverless to provide serverless search api.
106
+ We use AWS Open Search to provide a serverless search api.
101
107
 
102
108
  ```json
103
109
  {
104
- "searchs": [ "SEARCH_NAME" ]
110
+ "searchs": {
111
+ "SEARCH_NAME": {
112
+ "type": "t3.small"
113
+ }
114
+ }
105
115
  }
106
116
  ```
107
117
 
@@ -166,10 +176,10 @@ We use AWS ELB to provide a HTTP API.
166
176
 
167
177
  ```json
168
178
  {
169
- http: {
170
- HTTP_API_NAME: {
171
- 'GET /posts': 'list-posts.ts',
172
- 'POST /posts': 'create-post.ts',
179
+ "http": {
180
+ "HTTP_API_NAME": {
181
+ "GET /posts": "list-posts.ts",
182
+ "POST /posts": "create-post.ts",
173
183
  }
174
184
  }
175
185
  }
@@ -181,10 +191,10 @@ We use AWS ApiGatewayV2 to provide a serverless REST API.
181
191
 
182
192
  ```json
183
193
  {
184
- rest: {
185
- REST_API_NAME: {
186
- 'GET /posts/{id}': 'get-posts.ts',
187
- 'DELETE /posts/{id}': 'delete-post.ts',
194
+ "rest": {
195
+ "REST_API_NAME": {
196
+ "GET /posts/{id}": "get-posts.ts",
197
+ "DELETE /posts/{id}": "delete-post.ts",
188
198
  }
189
199
  }
190
200
  }
@@ -196,12 +206,16 @@ We use AWS AppSync to provide a serverless GraphQL API.
196
206
 
197
207
  ```json
198
208
  {
199
- graphql: {
200
- GRAPHQL_API_NAME: {
201
- schema: 'schema.gql',
202
- resolvers: {
203
- 'Query posts': 'list-posts.ts',
204
- 'Mutation createPost': 'create-post.ts',
209
+ "graphql": {
210
+ "GRAPHQL_API_NAME": {
211
+ "schema": "schema.gql",
212
+ "resolvers": {
213
+ "Query": {
214
+ "posts": "list-posts.ts",
215
+ },
216
+ "Mutation": {
217
+ "createPost": "create-post.ts",
218
+ }
205
219
  }
206
220
  }
207
221
  }