aws_util
Summary
Functions
-
base16(Data)
Base16 encode binary data.
-
binary_join(L, Sep)
Join binary values using the specified separator.
-
decode_xml(Xml)
Decode XML into a map representation.
-
encode_multi_segment_uri(Value)
Encode URI taking into account if it contains more than one segment.
-
encode_query(List)
Encode the map's key/value pairs as a querystring.
-
encode_uri(Value)
Encode URI into a percent-encoding string.
-
encode_xml(Map)
Encode an Erlang map as XML.
-
get_in(Keys, V)
Get a value from nested maps.
-
get_in(Keys, V, Default)
Get a value from nested maps, return default value if missing.
-
hmac_sha256(Key, Message)
Create an HMAC-SHA256 hexdigest for Key and Message.
-
hmac_sha256_hexdigest(Key, Message)
Create an HMAC-SHA256 hexdigest for Key and Message.
-
sha256_hexdigest(Value)
Create a SHA256 hexdigest for Value.
Functions
base16(Data)
Base16 encode binary data.
binary_join(L, Sep)
Join binary values using the specified separator.
decode_xml(Xml)
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.
encode_multi_segment_uri(Value)
Encode URI taking into account if it contains more than one segment.
encode_query(List)
Encode the map's key/value pairs as a querystring.
encode_uri(Value)
Encode URI into a percent-encoding string.
encode_xml(Map)
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.
get_in(Keys, V)
-spec get_in([any()], any()) -> any().
Get a value from nested maps
get_in(Keys, V, Default)
-spec get_in([any()], any(), any()) -> any().
Get a value from nested maps, return default value if missing
hmac_sha256(Key, Message)
Create an HMAC-SHA256 hexdigest for Key and Message.
hmac_sha256_hexdigest(Key, Message)
Create an HMAC-SHA256 hexdigest for Key and Message.
sha256_hexdigest(Value)
Create a SHA256 hexdigest for Value.