@tinybirdco/mockingbird
Version:
75 lines • 2.23 kB
TypeScript
import { SNSClient } from "@aws-sdk/client-sns";
import { z } from "zod";
import { Row } from "../types";
import { BaseGenerator } from "./BaseGenerator";
declare const awsSNSConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
schema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodString;
params: z.ZodOptional<z.ZodAny>;
count: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: string;
count?: number | undefined;
params?: any;
}, {
type: string;
count?: number | undefined;
params?: any;
}>>, Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>, Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>>;
eps: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
logs: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}, {
region: z.ZodString;
accessKeyId: z.ZodString;
secretAccessKey: z.ZodString;
topicArn: z.ZodString;
subject: z.ZodOptional<z.ZodString>;
snsOptions: z.ZodOptional<z.ZodAny>;
}>, "strip", z.ZodTypeAny, {
schema: Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>;
eps: number;
limit: number;
region: string;
accessKeyId: string;
secretAccessKey: string;
topicArn: string;
logs?: boolean | undefined;
subject?: string | undefined;
snsOptions?: any;
}, {
schema: Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>;
region: string;
accessKeyId: string;
secretAccessKey: string;
topicArn: string;
eps?: number | undefined;
limit?: number | undefined;
logs?: boolean | undefined;
subject?: string | undefined;
snsOptions?: any;
}>;
export type AWSSNSConfig = z.infer<typeof awsSNSConfigSchema>;
export declare class AWSSNSGenerator extends BaseGenerator<AWSSNSConfig> {
readonly client: SNSClient;
constructor(config: AWSSNSConfig);
sendData(rows: Row[]): Promise<void>;
}
export {};
//# sourceMappingURL=AWSSNSGenerator.d.ts.map