Skip to content

Commit b7bd99a

Browse files
committed
2621.0.0: Update AWS APIs to v2.621
1 parent 0158985 commit b7bd99a

File tree

7 files changed

+42958
-42114
lines changed

7 files changed

+42958
-42114
lines changed

atoz.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "2619.0.1"
1+
version = "2621.0.0"
22
author = "disruptek"
33
description = "Amazon Web Services (AWS) APIs"
44
license = "MIT"

src/atoz/autoscaling_20110101.nim

Lines changed: 1462 additions & 1441 deletions
Large diffs are not rendered by default.

src/atoz/chime_20180501.nim

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12492,6 +12492,9 @@ sloppyConst FetchFromEnv, AWS_ACCESS_KEY_ID
1249212492
sloppyConst FetchFromEnv, AWS_SECRET_ACCESS_KEY
1249312493
sloppyConst BakeIntoBinary, AWS_REGION
1249412494
sloppyConst FetchFromEnv, AWS_ACCOUNT_ID
12495+
type
12496+
XAmz = enum
12497+
SecurityToken = "X-Amz-Security-Token", ContentSha256 = "X-Amz-Content-Sha256"
1249512498
proc atozSign(recall: var Recallable; query: JsonNode; algo: SigningAlgo = SHA256) =
1249612499
let
1249712500
date = makeDateTime()
@@ -12515,8 +12518,8 @@ proc atozSign(recall: var Recallable; query: JsonNode; algo: SigningAlgo = SHA25
1251512518
normal = PathNormal.Default
1251612519
recall.headers["Host"] = url.hostname
1251712520
recall.headers["X-Amz-Date"] = date
12521+
recall.headers[$ContentSha256] = hash(recall.body, SHA256)
1251812522
let
12519-
algo = SHA256
1252012523
scope = credentialScope(region = region, service = awsServiceName, date = date)
1252112524
request = canonicalRequest(recall.meth, $url, query, recall.headers, recall.body,
1252212525
normalize = normal, digest = algo)
@@ -12531,9 +12534,6 @@ proc atozSign(recall: var Recallable; query: JsonNode; algo: SigningAlgo = SHA25
1253112534
recall.headers.del "Host"
1253212535
recall.url = $url
1253312536

12534-
type
12535-
XAmz = enum
12536-
SecurityToken = "X-Amz-Security-Token", ContentSha256 = "X-Amz-Content-Sha256"
1253712537
method atozHook(call: OpenApiRestCall; url: Uri; input: JsonNode): Recallable {.base.} =
1253812538
## the hook is a terrible earworm
1253912539
var headers = newHttpHeaders(massageHeaders(input.getOrDefault("header")))
@@ -12550,6 +12550,5 @@ method atozHook(call: OpenApiRestCall; url: Uri; input: JsonNode): Recallable {.
1255012550
let session = getEnv("AWS_SESSION_TOKEN", "")
1255112551
if session != "":
1255212552
headers[$SecurityToken] = session
12553-
headers[$ContentSha256] = hash(text, SHA256)
1255412553
result = newRecallable(call, url, headers, text)
1255512554
result.atozSign(input.getOrDefault("query"), SHA256)

src/atoz/cloud9_20170923.nim

Lines changed: 363 additions & 34 deletions
Large diffs are not rendered by default.

src/atoz/ec2_20161115.nim

Lines changed: 20463 additions & 20435 deletions
Large diffs are not rendered by default.

src/atoz/rds_20141031.nim

Lines changed: 19607 additions & 19384 deletions
Large diffs are not rendered by default.

src/atoz/rekognition_20160627.nim

Lines changed: 1058 additions & 814 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)