Amazon signature()

Prev Next

This function creates an Amazon V4 signature that will be added to the map specified in parameter d as Authorization header.

You can then use this map in function http() or http json-lookup() (see there) to send your request to the Amazon service.

Parameters

Parameter

Description

a

The URL of Amazon service you want to make the request to, e.g. https://mws.amazonservices.com

b

The HTTP method to be used, e.g. POST or GET.

c

The secret key (from Amazon).

d

The name of a map that needs to be filled with certain key-value pairs. This map will later also contain the signature as HTTP request header Authorization. See the following section.

Key-value pairs for map in parameter “d”

Required

Key

Value

AMZ_SERVICE

E.g. s3

AMZ_REGION

E.g. eu-central-1

AMZ_ACCESS_KEY_ID

<Your access key ID>

Optional

Key

Value

REQUEST_AMZ_HEADER_<Name of Amazon header>

<Header value>

REQUEST_URL_PARAMETER_<Name of URL parameter>

<Value of URL parameter>

REQUEST_HTTP_HEADER_<Name of HTTP request header>

<Header value>