API target props.

interface ApiTarget {
    apiKeyRequired?: true;
    httpMethod: HttpMethod;
    lambda: GuLambdaFunction;
    path: string;
}

Properties

apiKeyRequired

Whether an apiKey is required for this method.

httpMethod: HttpMethod

The [[HttpMethod]] for the target (e.g. GET, POST, PUT).

The Lambda function responsible for handling the request.

path: string

The path for the request (e.g. /test).