View Source aws_util (aws_beam_core v1.0.0)

Summary

Functions

Include additions only if they don't already exist in the provided list.
Add querystring to url is there are any parameters in the list
Join binary values using the specified separator.

Decode XML into a map representation

Encode URI taking into account if it contains more than one segment.
Encode the map's key/value pairs as a querystring. The query string must be sorted. The query string for query params that do not contain a value such as "key" should be encoded as "key=". Without this fix, the request will result in a SignatureDoesNotMatch error.
Encode URI into a percent-encoding string.

Encode an Erlang map as XML

Functions

Link to this function

add_headers(Additions, Headers)

View Source
Include additions only if they don't already exist in the provided list.
-spec add_query(binary(), [{binary(), any()}]) -> binary().
Add querystring to url is there are any parameters in the list
Join binary values using the specified separator.

Decode XML into a map representation

When there is more than one element with the same tag name, their values get merged into a list.

If the content is only text then a key with the element name and a value with the content is inserted.

If the content is a mix between text and child elements, then the elements are processed as described above and all the text parts are merged under the binary __text key.
Link to this function

encode_multi_segment_uri(Value)

View Source
Encode URI taking into account if it contains more than one segment.
Encode the map's key/value pairs as a querystring. The query string must be sorted. The query string for query params that do not contain a value such as "key" should be encoded as "key=". Without this fix, the request will result in a SignatureDoesNotMatch error.
Encode URI into a percent-encoding string.

Encode an Erlang map as XML

All keys must be binaries. Values can be a binary, a list, an integer a float or another nested map.