AWS AppSync JavaScript runtime features for resolvers and functions
The APPSYNC_JS
runtime environment provides functionality similar to ECMAScript (ES) version 6.0
-
Supported runtime features - Learn more about supported core features, primitive objects, built-in objects and functions, etc.
-
Built-in utilities - The util variable contains general utility methods to help you work with data. Unless otherwise specified, all utilities use the UTF-8 character set.
-
Built-in modules - Learn more about how built-in modules can help write JavaScript resolvers and functions.
-
Runtime utilities - The runtime library provides utilities to control or modify the runtime properties of your resolvers and functions.
-
Time helpers in util.time - The util.time variable contains datetime methods to help generate timestamps, convert between datetime formats, and parse datetime strings. The syntax for datetime formats is based on DateTimeFormatter
, which you can reference for further documentation. -
DynamoDB helpers in util.dynamodb - util.dynamodb contains helper methods that make it easier to write and read data to Amazon DynamoDB, such as automatic type mapping and formatting.
-
HTTP helpers in util.http - The util.http utility provides helper methods that you can use to manage HTTP request parameters and to add response headers.
-
Transformation helpers in util.transform - util.transform contains helper methods that make it easier to perform complex operations against data sources.
-
String helpers in util.str - util.str contains methods to help with common String operations.
-
Extensions - extensions contains a set of methods to make additional actions within your resolvers.
-
XML helpers in util.xml - util.xml contains methods to help with XML string conversion.
Note
Currently, this reference only applies to runtime version 1.0.0.