Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Permit custom region initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
iGranDav authored Mar 11, 2019
1 parent 9be1c23 commit 329bc6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Storage/Utilities/S3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public struct Region {
public static var apNortheast2: Region = .init(code: "ap-northeast-2")
public static var saEast1: Region = .init(code: "sa-east-1")

public init(code: String) {
self.code = code
}

public var host: String {
return "s3-\(code).amazonaws.com"
}
Expand Down

0 comments on commit 329bc6b

Please sign in to comment.