@cumulus/api-client
Version:
API client for working with the Cumulus archive API
17 lines • 863 B
TypeScript
import * as types from './types';
/**
* Invoke the Cumulus private API lambda (using pRetry)
*
* @param {Object} params
* @param {string} params.prefix - the prefix configured for the stack
* @param {string} params.payload - the payload object (e.g. httpMethod,
* resource, headers, path, body) containing params the lambda expects in the
* payload
* @param {number[]} params.expectedStatusCodes - list of status codes that will
* not cause a retry/failure
* @param {pRetry.Options} [params.pRetryOptions={}]
* @returns {Promise<Object|undefined>} - Returns promise that resolves to the
* output payload from the API lambda
*/
export declare function invokeApi(params: types.InvokeApiFunctionParams): Promise<types.ApiGatewayLambdaHttpProxyResponse>;
//# sourceMappingURL=cumulusApiClient.d.ts.map