Fugue.AWS.Region

Module Members

equal

(Function)

DEPRECATED This function is deprecated. Use == instead. Compare two Region values for equality.

Example:

ex1: AWS.Region.equal(AWS.Us-east-1, AWS.Us-west-2) # => False
ex2: AWS.Region.equal(AWS.Us-west-2, AWS.Us-west-2) # => True

Type Signature

 fun (Region, Region) -> Bool
Argument: this
Type: Region
Argument: that
Type: Region
Returns:

True if the values are the same region, False otherwise.

Type: Bool

fromString

(Function)

Convert a region string to a Region

Example usage:

ex1: AWS.Region.fromString("us-east-1")    # => Optional(AWS.Us-east-1)
ex2: AWS.Region.fromString("bogus-east-1") # => None

Type Signature

 fun (String) -> Optional<Region>
Argument: region

The string to parse.

Type: String

Returns:

The Region wrapped in an Ludwig.Optional or None if the string cannot be parsed to a valid region name.

Type: Optional<Region>

toString

(Function)

Convert a Region to a String.

Example:

ex: AWS.Region.toString(AWS.Us-east-1) # => "us-east-1"

Type Signature

 fun (Region) -> String
Argument: region
Type: Region
Returns:
Type: String