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

TestInvokeMethodRequest

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

Make a request to simulate the execution of a "Method".

interface TestInvokeMethodRequest {
body?: string | null;
clientCertificateId?: string | null;
headers?: {
[key: string]: string | null | undefined;
}
| null;
httpMethod: string;
multiValueHeaders?: {
[key: string]: string[] | null | undefined;
}
| null;
pathWithQueryString?: string | null;
resourceId: string;
restApiId: string;
stageVariables?: {
[key: string]: string | null | undefined;
}
| null;
}

§Properties

§
body?: string | null
[src]

The simulated request body of an incoming invocation request.

§
clientCertificateId?: string | null
[src]

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.

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

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

§
httpMethod: string
[src]

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

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

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

§
pathWithQueryString?: string | null
[src]

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

§
resourceId: string
[src]

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

§
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".