From 2074ef1aa46f4fcc4192486481993622590d0ef2 Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 8 Jul 2024 11:08:52 -0400 Subject: [PATCH] update getEndpointSuffix for eu-isoe-west-1 (#4657) --- lib/region_config.js | 3 ++- test/region_config.spec.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/region_config.js b/lib/region_config.js index b0fbb3fee9..f2809c5216 100644 --- a/lib/region_config.js +++ b/lib/region_config.js @@ -90,7 +90,8 @@ function getEndpointSuffix(region) { '^cn\\-\\w+\\-\\d+$': 'amazonaws.com.cn', '^us\\-gov\\-\\w+\\-\\d+$': 'amazonaws.com', '^us\\-iso\\-\\w+\\-\\d+$': 'c2s.ic.gov', - '^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov' + '^us\\-isob\\-\\w+\\-\\d+$': 'sc2s.sgov.gov', + '^eu\\-isoe\\-west\\-1$': 'cloud.adc-e.uk', }; var defaultSuffix = 'amazonaws.com'; var regexes = Object.keys(regionRegexes); diff --git a/test/region_config.spec.js b/test/region_config.spec.js index 3a3bbe3e65..4d7ddc0e42 100644 --- a/test/region_config.spec.js +++ b/test/region_config.spec.js @@ -1,6 +1,7 @@ const helpers = require('./helpers'); const AWS = helpers.AWS; const MockService = helpers.MockService; +var getEndpointSuffix = require('../lib/region_config').getEndpointSuffix; describe('region_config.js', function() { it('sets endpoint configuration option for default regions', function() { @@ -134,6 +135,10 @@ describe('region_config.js', function() { expect(service.isGlobalEndpoint).to.equal(false); expect(service.endpoint.host).to.equal('sts.us-gov-west-1.amazonaws.com'); }); + + it('resolves the endpoint suffix for eu-isoe-west-1', function() { + expect(getEndpointSuffix('eu-isoe-west-1')).to.equal('cloud.adc-e.uk'); + }); }); describe('region_config_data.json', function() {