UNPKG

@message-queue-toolkit/sns

Version:
12 lines (11 loc) 477 B
import type { ZodSchema } from 'zod'; export type TopicSubscriptionPolicyParams = { topicArn: string; allowedSqsQueueUrlPrefix?: string | readonly string[]; allowedSourceOwner?: string; }; export declare function generateTopicSubscriptionPolicy(params: TopicSubscriptionPolicyParams): string; export declare function generateFilterAttributes(messageSchemas: ZodSchema<any>[], messageTypeField: string): { FilterPolicy: string; FilterPolicyScope: string; };