Skip to content

Commit 764e4bf

Browse files
author
awstools
committed
feat(client-marketplace-entitlement-service): Endpoint update for new region
1 parent 8680432 commit 764e4bf

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

clients/client-marketplace-entitlement-service/src/endpoint/ruleset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ s={[x]:c,[y]:[{[z]:"UseDualStack"},false]},
3232
t={[x]:"getAttr",[y]:[{[z]:g},"supportsFIPS"]},
3333
u={[x]:c,[y]:[true,{[x]:"getAttr",[y]:[{[z]:g},"supportsDualStack"]}]},
3434
v=[{[z]:"Region"}];
35-
const _data={version:"1.0",parameters:{UseDualStack:i,UseFIPS:i,Endpoint:j,Region:j},rules:[{conditions:[{[x]:b,[y]:[k]}],rules:[{conditions:[l],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{rules:[{conditions:[m],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:k,properties:n,headers:n},type:e}],type:f}],type:f},{rules:[{conditions:[{[x]:b,[y]:v}],rules:[{conditions:[{[x]:"aws.partition",[y]:v,assign:g}],rules:[{conditions:[{[x]:h,[y]:[o,"aws"]},p,m],endpoint:q,type:e},{conditions:[r,p,s],endpoint:{url:"https://entitlement-marketplace.{Region}.amazonaws.com.cn",properties:n,headers:n},type:e},{conditions:[r,p,m],endpoint:q,type:e},{conditions:[l,m],rules:[{conditions:[{[x]:c,[y]:[a,t]},u],rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:[l,s],rules:[{conditions:[{[x]:c,[y]:[t,a]}],rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:[p,m],rules:[{conditions:[u],rules:[{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}],type:f}]};
35+
const _data={version:"1.0",parameters:{UseDualStack:i,UseFIPS:i,Endpoint:j,Region:j},rules:[{conditions:[{[x]:b,[y]:[k]}],rules:[{conditions:[l],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{rules:[{conditions:[m],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:k,properties:n,headers:n},type:e}],type:f}],type:f},{rules:[{conditions:[{[x]:b,[y]:v}],rules:[{conditions:[{[x]:"aws.partition",[y]:v,assign:g}],rules:[{conditions:[{[x]:h,[y]:[o,"aws"]},p,m],endpoint:q,type:e},{conditions:[r,p,s],endpoint:{url:"https://entitlement-marketplace.{Region}.amazonaws.com.cn",properties:n,headers:n},type:e},{conditions:[r,p,m],endpoint:q,type:e},{conditions:[{[x]:h,[y]:[o,"aws-eusc"]},p,s],endpoint:{url:"https://entitlement-marketplace.{Region}.amazonaws.eu",properties:n,headers:n},type:e},{conditions:[l,m],rules:[{conditions:[{[x]:c,[y]:[a,t]},u],rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:[l,s],rules:[{conditions:[{[x]:c,[y]:[t,a]}],rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:[p,m],rules:[{conditions:[u],rules:[{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:n,headers:n},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:n,headers:n},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}],type:f}]};
3636
export const ruleSet: RuleSetObject = _data;

codegen/sdk-codegen/aws-models/marketplace-entitlement-service.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,49 @@
302302
},
303303
"type": "endpoint"
304304
},
305+
{
306+
"conditions": [
307+
{
308+
"fn": "stringEquals",
309+
"argv": [
310+
{
311+
"fn": "getAttr",
312+
"argv": [
313+
{
314+
"ref": "PartitionResult"
315+
},
316+
"name"
317+
]
318+
},
319+
"aws-eusc"
320+
]
321+
},
322+
{
323+
"fn": "booleanEquals",
324+
"argv": [
325+
{
326+
"ref": "UseFIPS"
327+
},
328+
false
329+
]
330+
},
331+
{
332+
"fn": "booleanEquals",
333+
"argv": [
334+
{
335+
"ref": "UseDualStack"
336+
},
337+
false
338+
]
339+
}
340+
],
341+
"endpoint": {
342+
"url": "https://entitlement-marketplace.{Region}.amazonaws.eu",
343+
"properties": {},
344+
"headers": {}
345+
},
346+
"type": "endpoint"
347+
},
305348
{
306349
"conditions": [
307350
{
@@ -681,7 +724,7 @@
681724
"documentation": "For region eusc-de-east-1 with FIPS disabled and DualStack disabled",
682725
"expect": {
683726
"endpoint": {
684-
"url": "https://entitlement.marketplace.eusc-de-east-1.amazonaws.eu"
727+
"url": "https://entitlement-marketplace.eusc-de-east-1.amazonaws.eu"
685728
}
686729
},
687730
"params": {

0 commit comments

Comments
 (0)