CmdID / aws / aws apigateway
aws apigateway test-invoke-method
Simulate the invocation of a Method in your RestApi with headers, parameters, and an incoming request body. AWS CLI reference
9 options Its page in the AWS CLI reference
Options
--bodyThe simulated request body of an incoming invocation request.--client-certificate-idA ClientCertificate identifier to use in the test invocation.--headersA key-value map of headers to simulate an incoming invocation request.--http-methodSpecifies a test invoke method request's HTTP method.--multi-value-headersThe headers as a map from string to list of values to simulate an incoming invocation request.--path-with-query-stringThe URI path, including query string, of the simulated invocation request.--resource-idSpecifies a test invoke method request's resource ID.--rest-api-idThe string identifier of the associated RestApi.--stage-variablesA key-value map of stage variables to simulate an invocation on a deployed Stage.