Advertisement
NLinker

Parse region for SQS

May 20th, 2017
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       parseRegion :: T.Text -> Maybe T.Text
  2.       parseRegion name = case name of
  3.         "us-east-1"      -> Just "sqs.us-east-1.amazonaws.com"
  4.         "us-west-1"      -> Just "sqs.us-west-1.amazonaws.com"
  5.         "us-west-2"      -> Just "sqs.us-west-2.amazonaws.com"
  6.         "ap-northeast-1" -> Just "sqs.ap-northeast-1.amazonaws.com"
  7.         "ap-southeast-1" -> Just "sqs.ap-southeast-1.amazonaws.com"
  8.         "ap-southeast-2" -> Just "sqs.ap-southeast-2.amazonaws.com"
  9.         "sa-east-1"      -> Just "sqs.sa-east-1.amazonaws.com"
  10.         "eu-west-1"      -> Just "sqs.eu-west-1.amazonaws.com"
  11.         "eu-central-1"   -> Just "sqs.eu-central-1.amazonaws.com"
  12.         "cn-north-1.am"  -> Just "sqs.cn-north-1.amazonaws.com.cn"
  13.         "us-gov-west-1"  -> Just "sqs.us-gov-west-1.amazonaws.com"
  14.         "ap-northeast-2" -> Just "sqs.ap-northeast-2.amazonaws.com"
  15.         "local"          -> Just "localhost"
  16.         _                -> Nothing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement