summaryrefslogtreecommitdiff
path: root/aws/serialize.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-04-17 22:56:09 +0200
committerRicardo Wurmus <rekado@elephly.net>2021-04-17 22:56:30 +0200
commitca02b8fcce5170b0fb1ee6ffe5385124e2611644 (patch)
treec33f755c9b1ea9ab9b37f12a0e85b5fe3e0f280d /aws/serialize.scm
parentbed1a6624e0faac0830346e3bb1ac3581e8bb34b (diff)
Add support for Cost Explorer API.
Diffstat (limited to 'aws/serialize.scm')
-rw-r--r--aws/serialize.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/aws/serialize.scm b/aws/serialize.scm
index c3fcaf3..1a8be8b 100644
--- a/aws/serialize.scm
+++ b/aws/serialize.scm
@@ -25,6 +25,10 @@
aws-value->scm
aws-value->sxml))
+;; List of types whose constructor should not be serialized
+(define %skip
+ '(Expression TagValues DateInterval)) ; ce API
+
;; See https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html
(define* (serialize-aws-value thing)
"Return a list of strings that together should form the request
@@ -104,7 +108,7 @@ which can easily be converted to JSON."
.
,(aws-value->scm value)))))
(aws-structure-members thing))))
- (if strip-name?
+ (if (or strip-name? (member (aws-structure-aws-name thing) %skip))
members
`((,(format #false "~a" (aws-structure-aws-name thing))
. ,members)))))