Simulate the execution of an Authorizer in your RestApi with headers, parameters, and an incoming request body.
apigateway_test_invoke_authorizer(restApiId, authorizerId, headers,
multiValueHeaders, pathWithQueryString, body, stageVariables,
additionalContext)[required] [Required] The string identifier of the associated RestApi.
[required] [Required] Specifies a test invoke authorizer request\'s Authorizer ID.
[Required] A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.
[Optional] The headers as a map from string to list of values to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, may be specified.
[Optional] The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.
[Optional] The simulated request body of an incoming invocation request.
A key-value map of stage variables to simulate an invocation on a deployed Stage.
[Optional] A key-value map of additional context variables.
svc$test_invoke_authorizer(
restApiId = "string",
authorizerId = "string",
headers = list(
"string"
),
multiValueHeaders = list(
list(
"string"
)
),
pathWithQueryString = "string",
body = "string",
stageVariables = list(
"string"
),
additionalContext = list(
"string"
)
)
::: {.seeAlso} Use Lambda Function as Authorizer Use Cognito User Pool as Authorizer :::