UNPKG

@message-queue-toolkit/sns

Version:
20 lines (19 loc) 1.68 kB
import type { CreateTopicCommandInput, SNSClient } from '@aws-sdk/client-sns'; import type { CreateQueueCommandInput, SQSClient } from '@aws-sdk/client-sqs'; import type { DeletionConfig, ExtraParams } from '@message-queue-toolkit/core'; import type { SQSCreationConfig } from '@message-queue-toolkit/sqs'; import type { SNSCreationConfig, SNSTopicLocatorType } from '../sns/AbstractSnsService'; import type { SNSSQSQueueLocatorType } from '../sns/AbstractSnsSqsConsumer'; import type { STSClient } from '@aws-sdk/client-sts'; import type { SNSSubscriptionOptions } from './snsSubscriber'; export declare function initSnsSqs(sqsClient: SQSClient, snsClient: SNSClient, stsClient: STSClient, locatorConfig?: SNSSQSQueueLocatorType, creationConfig?: SNSCreationConfig & SQSCreationConfig, subscriptionConfig?: SNSSubscriptionOptions, extraParams?: ExtraParams): Promise<{ subscriptionArn: string; topicArn: string; queueUrl: string; queueName: string; }>; export declare function deleteSnsSqs(sqsClient: SQSClient, snsClient: SNSClient, stsClient: STSClient, deletionConfig: DeletionConfig, queueConfiguration: CreateQueueCommandInput, topicConfiguration: CreateTopicCommandInput | undefined, subscriptionConfiguration: SNSSubscriptionOptions, extraParams?: ExtraParams, topicLocator?: SNSTopicLocatorType): Promise<void>; export declare function deleteSns(snsClient: SNSClient, stsClient: STSClient, deletionConfig: DeletionConfig, creationConfig: SNSCreationConfig): Promise<void>; export declare function initSns(snsClient: SNSClient, stsClient: STSClient, locatorConfig?: SNSTopicLocatorType, creationConfig?: SNSCreationConfig): Promise<{ topicArn: string; }>;