apigateway_test_invoke_method: Simulate the invocation of a Method in your RestApi with...

View source: R/apigateway_operations.R

apigateway_test_invoke_methodR Documentation

Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body

Description

Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body.

See https://www.paws-r-sdk.com/docs/apigateway_test_invoke_method/ for full documentation.

Usage

apigateway_test_invoke_method(
  restApiId,
  resourceId,
  httpMethod,
  pathWithQueryString = NULL,
  body = NULL,
  headers = NULL,
  multiValueHeaders = NULL,
  clientCertificateId = NULL,
  stageVariables = NULL
)

Arguments

restApiId

[required] The string identifier of the associated RestApi.

resourceId

[required] Specifies a test invoke method request's resource ID.

httpMethod

[required] Specifies a test invoke method request's HTTP method.

pathWithQueryString

The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.

body

The simulated request body of an incoming invocation request.

headers

A key-value map of headers to simulate an incoming invocation request.

multiValueHeaders

The headers as a map from string to list of values to simulate an incoming invocation request.

clientCertificateId

A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.

stageVariables

A key-value map of stage variables to simulate an invocation on a deployed Stage.


paws.networking documentation built on Sept. 12, 2024, 7:32 a.m.