AWS.signed_post
AWS.signed_posturibodymethodheadersresponse_formatcredentialsregion_service
Aliases: http post, upload
Documentation
Writes the provided data to the provided AWS URI signing the request with the necessary headers. 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
uri: The URI to fetch.body: The data to write. SeeSupported Body Typesbelow.method: The HTTP method to use. Must be one ofHTTP_Method.Post,HTTP_Method.Put,HTTP_Method.Patch. Defaults toHTTP_Method.Post.headers: The headers to send with the request. Defaults to an empty vector.response_format: The format to use for interpreting the response. Defaults toAuto_Detect. IfRaw_Responseis selected or if the format cannot be determined automatically, a raw HTTPResponsewill 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.
Returns
- A new table with the group_by columns as well as any aggregate columns.
Examples
Count all the rows
table = Table.from_rows ["Name","Location"] [["John", "Massachusetts"],["Paul","London"]]
grouped = table.aggregate columns=[Aggregate_Column.Count]
Returns a Table
| Count |
|---|
| 2 |
Group by the Key column, count the rows
table = Table.from_rows ["Name","Location"] [["John", "Massachusetts"],["Paul","London"]]
grouped = table.aggregate ["Name"] [Aggregate_Column.Count]
Returns a Table
| Name | Count |
|---|---|
| John | 1 |
| Paul | 1 |