faastjs
Version:
Serverless batch computing made simple.
15 lines (14 loc) • 1.01 kB
TypeScript
import { SNS } from "@aws-sdk/client-sns";
import { SQS } from "@aws-sdk/client-sqs";
import { Message, PollResult } from "../provider";
import { CallingContext, FunctionCall } from "../wrapper";
import { AwsMetrics } from "./aws-faast";
export declare function createSNSTopic(sns: SNS, Name: string): Promise<string>;
export declare function sendResponseQueueMessage(sqs: SQS, QueueUrl: string, message: Message, cc: CallingContext): Promise<void>;
export declare function publishFunctionCallMessage(sns: SNS, TopicArn: string, message: FunctionCall, metrics: AwsMetrics): Promise<import("@aws-sdk/client-sns").PublishCommandOutput>;
export declare function createSQSQueue(QueueName: string, VTimeout: number, sqs: SQS): Promise<{
QueueUrl: string;
QueueArn: string | undefined;
}>;
export declare function processAwsErrorMessage(message?: string): Error;
export declare function receiveMessages(sqs: SQS, ResponseQueueUrl: string, metrics: AwsMetrics, cancel: Promise<void>): Promise<PollResult>;