Interface ResourceControllerOptions

The initial options for a constructor of class ResourceController.

interface ResourceControllerOptions {
    logRequestsWithKey?: string;
    resourceId?: string;
    tracer?: Tracer;
    useMetrics?: boolean;
}

Properties

logRequestsWithKey?: string

If set, the logs of the API requests on this resource will be stored (using this key).

resourceId?: string

The resourceId of the API request, to specify if different from "proxy".

tracer?: Tracer

The instance of the tracer to use in case of advanced monitoring.

useMetrics?: boolean

Whether to automatically store usage metrics on CloudWatch.