Skip to content

Commit e02cf7a

Browse files
authored
update getEndpointSuffix for us-isof-south-1 (#4674)
* update getEndpointSuffix for us-isof-south-1 * chore: add changelog
1 parent 203b2c6 commit e02cf7a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "bugfix",
3+
"category": "region endpoint",
4+
"description": "add endpoint suffix for a region"
5+
}

Diff for: lib/region_config.js

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function getEndpointSuffix(region) {
9292
'^us\\-iso\\-\\w+\\-\\d+$': 'c2s.ic.gov',
9393
'^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov',
9494
'^eu\\-isoe\\-west\\-1$': 'cloud.adc-e.uk',
95+
'^us\\-isof\\-\\w+\\-\\d+$': 'csp.hci.ic.gov',
9596
};
9697
var defaultSuffix = 'amazonaws.com';
9798
var regexes = Object.keys(regionRegexes);

Diff for: test/region_config.spec.js

+4
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ describe('region_config.js', function() {
139139
it('resolves the endpoint suffix for eu-isoe-west-1', function() {
140140
expect(getEndpointSuffix('eu-isoe-west-1')).to.equal('cloud.adc-e.uk');
141141
});
142+
143+
it('resolves the endpoint suffix for us-isof-south-1', function() {
144+
expect(getEndpointSuffix('us-isof-south-1')).to.equal('csp.hci.ic.gov');
145+
});
142146
});
143147

144148
describe('region_config_data.json', function() {

0 commit comments

Comments
 (0)