Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TestInvokeAuthorizerRequest

import type { TestInvokeAuthorizerRequest } from "https://aws-api.deno.dev/v0.3/services/apigateway.ts?docs=full";

Make a request to simulate the execution of an "Authorizer".

interface TestInvokeAuthorizerRequest {
additionalContext?: {
[key: string]: string | null | undefined;
}
| null;
authorizerId: string;
body?: string | null;
headers?: {
[key: string]: string | null | undefined;
}
| null;
multiValueHeaders?: {
[key: string]: string[] | null | undefined;
}
| null;
pathWithQueryString?: string | null;
restApiId: string;
stageVariables?: {
[key: string]: string | null | undefined;
}
| null;
}

§Properties

§
additionalContext?: {
[key: string]: string | null | undefined;
}
| null
[src]

[Optional] A key-value map of additional context variables.

§
authorizerId: string
[src]

[Required] Specifies a test invoke authorizer request's "Authorizer" ID.

§
body?: string | null
[src]

[Optional] The simulated request body of an incoming invocation request.

§
headers?: {
[key: string]: string | null | undefined;
}
| null
[src]

[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.

§
multiValueHeaders?: {
[key: string]: string[] | null | undefined;
}
| null
[src]

[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.

§
pathWithQueryString?: string | null
[src]

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

§
restApiId: string
[src]

[Required] The string identifier of the associated "RestApi".

§
stageVariables?: {
[key: string]: string | null | undefined;
}
| null
[src]

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