Skip to content

Commit

Permalink
Pm mck feature/add sqs (inhabitedtype#63)
Browse files Browse the repository at this point in the history
* update aws mli to support transforming hashtbl keys; add sqs support; fix bug in generator for mapping enums
* add endpoint generator
* update to add region for to_http call
* Generate sqs library.
* Re-run libraries generation using the new endpoints.
* Fixup maintainer information.
  • Loading branch information
tmcgilchrist authored Aug 22, 2019
1 parent f105cc2 commit acbb7fc
Show file tree
Hide file tree
Showing 608 changed files with 13,425 additions and 1,302 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ libraries/**/*.install
lib/**/.merlin
.envrc
**/.merlin
.idea
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ clean:
update-version:
scripts/update-version

.PHONY: endpoints

endpoints:
dune exec endpoint-gen -- -i input/endpoints.json -o lib

aws-ec2:
dune exec aws-gen -- --is-ec2 -i input/ec2/latest/service-2.json -r input/ec2/overrides.json -e input/errors.json -o libraries

Expand All @@ -35,6 +40,7 @@ LIBRARIES := \
aws-sts \
aws-s3 \
aws-route53 \
aws-sqs \

.PHONY: $(LIBRARIES)
$(LIBRARIES): aws-%:
Expand Down
2 changes: 1 addition & 1 deletion async/runtime.ml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let run_request
(inp : M.input)
=
let meth, uri, headers =
Aws.Signing.sign_request ~access_key ~secret_key ~service:M.service ~region (M.to_http inp)
Aws.Signing.sign_request ~access_key ~secret_key ~service:M.service ~region (M.to_http M.service region inp)
in
let headers = Header.of_list headers in
try_with begin fun () ->
Expand Down
5 changes: 3 additions & 2 deletions aws-async.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
maintainer: "Tim McGilchrist <timmcgil@gmail.com>"
authors: [ "Spiros Eliopoulos <[email protected]>"
"Daniel Patterson <[email protected]>" ]
"Daniel Patterson <[email protected]>"
"Tim McGilchrist <[email protected]>"]
synopsis: "Amazon Web Services SDK bindings for async"
description: "Amazon Web Services SDK bindings for async"
license: "BSD-3-clause"
Expand Down
7 changes: 5 additions & 2 deletions aws-gen.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
maintainer: "Tim McGilchrist <timmcgil@gmail.com>"
authors: [ "Spiros Eliopoulos <[email protected]>"
"Daniel Patterson <[email protected]>" ]
"Daniel Patterson <[email protected]>"
"Tim McGilchrist <[email protected]>"
]
synopsis: "Amazon Web Services code generator"
description: "Amazon Web Services code generator - Builds OCaml bindings for AWS using botocore API definition"
license: "BSD-3-clause"
Expand All @@ -13,6 +15,7 @@ build: [
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"atdgen"
"yojson"
"base-unix"
"cmdliner"
Expand Down
5 changes: 3 additions & 2 deletions aws-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
maintainer: "Tim McGilchrist <timmcgil@gmail.com>"
authors: [ "Spiros Eliopoulos <[email protected]>"
"Daniel Patterson <[email protected]>" ]
"Daniel Patterson <[email protected]>"
"Tim McGilchrist <[email protected]>"]
synopsis: "Amazon Web Services SDK bindings for lwt"
description: "Amazon Web Services SDK bindings for lwt"
license: "BSD-3-clause"
Expand Down
5 changes: 3 additions & 2 deletions aws.opam
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <spiros@inhabitedtype.com>"
maintainer: "Tim McGilchrist <timmcgil@gmail.com>"
authors: [ "Spiros Eliopoulos <[email protected]>"
"Daniel Patterson <[email protected]>" ]
"Daniel Patterson <[email protected]>"
"Tim McGilchrist <[email protected]>"]
synopsis: "Amazon Web Services SDK"
description: """
Amazon Web Services SDK
Expand Down
22 changes: 22 additions & 0 deletions aws_sqs.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
opam-version: "2.0"
maintainer: "Tim McGilchrist <[email protected]>"
authors: [ "Spiros Eliopoulos <[email protected]>"
"Daniel Patterson <[email protected]>"
"Tim McGilchrist <[email protected]>"
]
synopsis: "Amazon Web Services SDK bindings to Amazon Simple Queue Service"
description: "Amazon Web Services SDK bindings to Amazon Simple Queue Service"
version: "1.1"
license: "BSD-3-clause"
homepage: "https://github.com/inhabitedtype/ocaml-aws"
dev-repo: "git+https://github.com/inhabitedtype/ocaml-aws.git"
bug-reports: "https://github.com/inhabitedtype/ocaml-aws/issues"
doc: "https://github.com/inhabitedtype/ocaml-aws"
build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"aws" {>= "0.1.0"}
"dune" {build}
]
Loading

0 comments on commit acbb7fc

Please sign in to comment.