UNPKG

@cumulus/aws-client

Version:
24 lines 822 B
/** * @module SNS */ /** * Publish a message to an SNS topic. Does not catch * errors, to allow more specific handling by the caller. * * @param snsTopicArn - SNS topic ARN * @param message - Message object * @param retryOptions - options to control retry behavior when publishing * a message fails. See https://github.com/tim-kos/node-retry#retryoperationoptions * @returns {Promise<undefined>} */ export declare const publishSnsMessageWithRetry: (snsTopicArn: string, message: Object, retryOptions?: {}) => Promise<void>; /** * Create an SNS topic with a given name. * * @param snsTopicName - Name of the SNS topic * @returns - ARN of the created SNS topic */ export declare const createSnsTopic: (snsTopicName: string) => Promise<{ TopicArn: string | undefined; }>; //# sourceMappingURL=SNS.d.ts.map