Skip to content

Commit 47d9128

Browse files
author
AWS
committed
AWS Marketplace Entitlement Service Update: Add support for Marketplace Entitlement Service dual-stack endpoints for CN and GOV regions
1 parent 3e62940 commit 47d9128

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Marketplace Entitlement Service",
4+
"contributor": "",
5+
"description": "Add support for Marketplace Entitlement Service dual-stack endpoints for CN and GOV regions"
6+
}

services/marketplaceentitlement/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,49 @@
205205
},
206206
"type": "endpoint"
207207
},
208+
{
209+
"conditions": [
210+
{
211+
"fn": "stringEquals",
212+
"argv": [
213+
{
214+
"fn": "getAttr",
215+
"argv": [
216+
{
217+
"ref": "PartitionResult"
218+
},
219+
"name"
220+
]
221+
},
222+
"aws-cn"
223+
]
224+
},
225+
{
226+
"fn": "booleanEquals",
227+
"argv": [
228+
{
229+
"ref": "UseFIPS"
230+
},
231+
false
232+
]
233+
},
234+
{
235+
"fn": "booleanEquals",
236+
"argv": [
237+
{
238+
"ref": "UseDualStack"
239+
},
240+
true
241+
]
242+
}
243+
],
244+
"endpoint": {
245+
"url": "https://entitlement-marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",
246+
"properties": {},
247+
"headers": {}
248+
},
249+
"type": "endpoint"
250+
},
208251
{
209252
"conditions": [
210253
{

services/marketplaceentitlement/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled",
116116
"expect": {
117117
"endpoint": {
118-
"url": "https://entitlement.marketplace.cn-northwest-1.api.amazonwebservices.com.cn"
118+
"url": "https://entitlement-marketplace.cn-northwest-1.api.amazonwebservices.com.cn"
119119
}
120120
},
121121
"params": {

0 commit comments

Comments
 (0)