Skip to content

Scala micro library for AWS regions 🌍

License

Notifications You must be signed in to change notification settings

maginepro/aws-regions

Repository files navigation

🌍 aws-regions

Scala micro library for AWS regions.

Usage

You can add the following lines to build.sbt to use the library.

libraryDependencies ++= Seq(
  "com.magine" %% "aws-regions" % awsRegionsVersion,
  "com.magine" %% "aws-regions-circe" % awsRegionsVersion,
  "com.magine" %% "aws-regions-ciris" % awsRegionsVersion
)

Make sure to replace awsRegionsVersion with a release version.
Replace %% with %%% if you are using Scala.js or Scala Native.

Quick Example

import com.magine.aws.Region

Region.EU_WEST_1 == Region("eu-west-1") // true
Region.EU_WEST_1 == Region("EU-WEST-1") // true
Region.valid("eu-west-1") //  Right(eu-west-1)
Region.valid("EU-WEST-1") //  Right(eu-west-1)
Region.valid("eu-west-4") //  Left(com.magine.aws.InvalidRegion: Invalid region: eu-west-4)

About

Scala micro library for AWS regions 🌍

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages