You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates Unison client code from Smithy service models. Produces client modules, type definitions, and HTTP request/response handling for service operations.
7
+
Generates [Unison](https://www.unison-lang.org/) client code from Smithy service models. Produces client modules, type definitions, and HTTP request/response handling for service operations.
8
8
9
9
Reference: https://smithy.io/2.0/index.html
10
10
@@ -72,13 +72,21 @@ Run all example builds:
72
72
make examples
73
73
```
74
74
75
-
Or generate and run the official [AWS SDK S3 model](https://github.com/aws/api-models-aws/tree/main/models/s3/service/2006-03-01):
75
+
Run demo:
76
76
77
77
```bash
78
78
make demo
79
79
```
80
80
81
-
The [demo application](https://github.com/f34nk/smithy-unison/blob/main/examples/aws-demo/src/main.u) executes functions from the generated `s3_client` against a mocked S3 bucket.
81
+
The [demo application](https://github.com/f34nk/smithy-unison/blob/main/examples/aws-demo/src/main.u) generates the `aws_s3_client` from the official [AWS SDK S3 model](https://github.com/aws/api-models-aws/tree/main/models/s3/service/2006-03-01), compiles it locally and executes functions against a mocked S3 bucket in Docker Compose.
82
+
83
+
Run integration-test:
84
+
85
+
```bash
86
+
make integration-test
87
+
```
88
+
89
+
The **integration-test** installs and compiles the [Unison AWS library](https://github.com/f34nk/smithy-unison/blob/main/examples/aws-demo/compile-with-lib.sh#L11) (generated with `smithy-unison` and released to [Unison Share @f34nk/aws](https://share.unison-lang.org/@f34nk/aws)) and runs the [demo application](https://github.com/f34nk/smithy-unison/blob/main/examples/aws-demo/src/main.u) against a mocked S3 bucket in Docker Compose.
82
90
83
91
## Basic Usage
84
92
@@ -238,6 +246,12 @@ getObject config input =
238
246
-- Raises exception on error, returns output directly on success
239
247
```
240
248
249
+
## AWS SDK Generator (experimental)
250
+
251
+
Use the AWS SDK Generator to generate unison code for any available AWS SDK.
252
+
253
+
Check out [generate-aws-sdk](https://github.com/f34nk/smithy-unison/blob/main/generate-aws-sdk) for details.
0 commit comments