Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add sqs #55

Closed
wants to merge 12 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,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 @@ -15,6 +15,11 @@ uninstall:
clean:
rm -rf _build *.install

.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 @@ -33,6 +38,7 @@ LIBRARIES := \
aws-s3 \
aws-ec2 \
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
18 changes: 18 additions & 0 deletions aws_sqs.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <[email protected]>"
authors: [ "Spiros Eliopoulos <[email protected]>"
"Daniel Patterson <[email protected]>" ]
synopsis: "Amazon Web Services SDK bindings to SQS"
description: "Amazon Web Services SDK bindings to SQS"
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"
build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"aws" {>= "0.1.0"}
"dune" {build}
]
25 changes: 25 additions & 0 deletions endpoint-gen.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
opam-version: "2.0"
maintainer: "Spiros Eliopoulos <[email protected]>"
authors: [ "Spiros Eliopoulos <[email protected]>"
"Daniel Patterson <[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"
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"
build: [
# ["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"atdgen"
"yojson"
"base-unix"
"cmdliner"
"ppx_tools_versioned"
"yojson"
"ocaml-migrate-parsetree"
"ocamlgraph"
"dune" {build}
]
Loading