new_request: Return an API request object

Description Usage Arguments See Also Examples

View source: R/request.R

Description

Return an API request object with everything needed to make a request.

Usage

1
new_request(client, operation, params, data)

Arguments

client

A service client, e.g. from new_service.

operation

An operation, e.g. from new_operation.

params

A populated input object.

data

An empty output object.

See Also

Other API request functions: new_handlers, new_operation, new_service, send_request

Examples

1
2
3
4
5
6
# Make a request object for the S3 ListBuckets operation.
client <- function() {new_service(metadata, handlers)}
op <- new_operation("ListBuckets", "GET", "/", list())
params <- list()
data <- tag_add(list(Buckets = list()), list(type = "structure"))
req <- new_request(client, op, params, data)

paws.common documentation built on Aug. 20, 2019, 9:03 a.m.