Skip to content

Commit 2162fb1

Browse files
author
Michael MacDonald
committed
Add support for GovCloud region
1 parent dcaf44c commit 2162fb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aws_region.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const (
88
AWS_REGION_US_EAST_1 AWSRegion = "us-east-1"
99
AWS_REGION_US_WEST_1 AWSRegion = "us-west-1"
1010
AWS_REGION_US_WEST_2 AWSRegion = "us-west-2"
11+
AWS_REGION_US_GOV_WEST_1 AWSRegion = "us-gov-west-1"
1112
AWS_REGION_EU_WEST_1 AWSRegion = "eu-west-1"
1213
AWS_REGION_EU_CENTRAL_1 AWSRegion = "eu-central-1"
1314
AWS_REGION_AP_SOUTHEAST_1 AWSRegion = "ap-southeast-1"
@@ -20,6 +21,7 @@ var AWSRegions = []AWSRegion{
2021
AWS_REGION_US_EAST_1,
2122
AWS_REGION_US_WEST_1,
2223
AWS_REGION_US_WEST_2,
24+
AWS_REGION_US_GOV_WEST_1,
2325
AWS_REGION_EU_WEST_1,
2426
AWS_REGION_EU_CENTRAL_1,
2527
AWS_REGION_AP_SOUTHEAST_1,
@@ -44,7 +46,7 @@ func (r AWSRegion) Validate() error {
4446
return ErrAWSRegionEmptyString
4547
}
4648

47-
if r != AWS_REGION_US_EAST_1 && r != AWS_REGION_US_WEST_1 && r != AWS_REGION_US_WEST_2 &&
49+
if r != AWS_REGION_US_EAST_1 && r != AWS_REGION_US_WEST_1 && r != AWS_REGION_US_WEST_2 && r != AWS_REGION_US_GOV_WEST_1 &&
4850
r != AWS_REGION_EU_WEST_1 && r != AWS_REGION_EU_CENTRAL_1 &&
4951
r != AWS_REGION_AP_SOUTHEAST_1 && r != AWS_REGION_AP_SOUTHEAST_2 && r != AWS_REGION_AP_NORTHEAST_1 &&
5052
r != AWS_REGION_SA_EAST_1 {

0 commit comments

Comments
 (0)