AWS.signed_fetch
AWS.signed_fetchurimethodheadersformat credentialsregion_service
Aliases: download
, http get
Documentation
Fetches from an AWS URI signing the request with the necessary headers, and returns the response, parsing the body if the content-type is recognised. Returns an error if the status code does not represent a successful response.
Arguments
method
: The HTTP method to use. Must be one ofHTTP_Method.Get
,HTTP_Method.Head
,HTTP_Method.Delete
,HTTP_Method.Options
. Defaults toHTTP_Method.Get
.headers
: The headers to send with the request. Defaults to an empty vector.format
: The format to use for interpreting the response. Defaults toAuto_Detect
. IfRaw_Response
is selected or if the format cannot be determined automatically, a raw HTTPResponse
will be returned.credentials
: The credentials to use for signing the request. Defaults to the default AWS credentials.region_service
: The region and service to use for signing the request. Defaults to the region and service parsed from the URI.