const invalidSqsSnsCharacters = new RegExp ( '[^a-zA-Z0-9_-]' , 'g' ) ; export const normalizeMessageName = ( messageName ) => messageName . replace ( invalidSqsSnsCharacters , '-' ) ; param messageName returns export const resolveTopicName = ( messageName ) => normalizeMessageName ( messageName ) ; param awsAccountId param awsRegion param topicName returns export const resolveTopicArn = ( awsAccountId , awsRegion , topicName ) => `arn:aws:sns:${ awsRegion }:${ awsAccountId }:${ topicName }` ; export const resolveQueueUrl = ( href , awsAccountId , queueName ) => `${ href }${ awsAccountId }/${ queueName }` ; export const resolveQueueArn = ( awsAccountId , awsRegion , queueName ) => `arn:aws:sqs:${ awsRegion }:${ awsAccountId }:${ queueName }` ; export const resolveDeadLetterQueueName = ( ) => `dead-letter-queue` ;