Skip to content

Commit 231317d

Browse files
author
awstools
committed
feat(client-marketplace-entitlement-service): Releasing minor endpoint updates.
1 parent 354980a commit 231317d

File tree

2 files changed

+51
-17
lines changed

2 files changed

+51
-17
lines changed

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

+19-17
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import { RuleSetObject } from "@smithy/types";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/marketplace-entitlement-service.json */
88

9-
const u="required",
10-
v="fn",
11-
w="argv",
12-
x="ref";
9+
const w="required",
10+
x="fn",
11+
y="argv",
12+
z="ref";
1313
const a=true,
1414
b="isSet",
1515
c="booleanEquals",
@@ -18,17 +18,19 @@ e="endpoint",
1818
f="tree",
1919
g="PartitionResult",
2020
h="getAttr",
21-
i={[u]:false,"type":"String"},
22-
j={[u]:true,"default":false,"type":"Boolean"},
23-
k={[x]:"Endpoint"},
24-
l={[v]:c,[w]:[{[x]:"UseFIPS"},true]},
25-
m={[v]:c,[w]:[{[x]:"UseDualStack"},true]},
26-
n={},
27-
o={[v]:h,[w]:[{[x]:g},"supportsFIPS"]},
28-
p={[x]:g},
29-
q={[v]:c,[w]:[true,{[v]:h,[w]:[p,"supportsDualStack"]}]},
30-
r=[l],
31-
s=[m],
32-
t=[{[x]:"Region"}];
33-
const _data={version:"1.0",parameters:{Region:i,UseDualStack:j,UseFIPS:j,Endpoint:i},rules:[{conditions:[{[v]:b,[w]:[k]}],rules:[{conditions:r,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:s,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:k,properties:n,headers:n},type:e}],type:f},{conditions:[{[v]:b,[w]:t}],rules:[{conditions:[{[v]:"aws.partition",[w]:t,assign:g}],rules:[{conditions:[l,m],rules:[{conditions:[{[v]:c,[w]:[a,o]},q],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:r,rules:[{conditions:[{[v]:c,[w]:[o,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:s,rules:[{conditions:[q],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},{conditions:[{[v]:"stringEquals",[w]:["aws",{[v]:h,[w]:[p,"name"]}]}],endpoint:{url:"https://entitlement.marketplace.{Region}.amazonaws.com",properties:n,headers:n},type:e},{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}]};
21+
i="stringEquals",
22+
j={[w]:false,"type":"String"},
23+
k={[w]:true,"default":false,"type":"Boolean"},
24+
l={[z]:"Endpoint"},
25+
m={[x]:c,[y]:[{[z]:"UseFIPS"},true]},
26+
n={[x]:c,[y]:[{[z]:"UseDualStack"},true]},
27+
o={},
28+
p={[z]:"Region"},
29+
q={[x]:h,[y]:[{[z]:g},"supportsFIPS"]},
30+
r={[z]:g},
31+
s={[x]:c,[y]:[true,{[x]:h,[y]:[r,"supportsDualStack"]}]},
32+
t=[m],
33+
u=[n],
34+
v=[p];
35+
const _data={version:"1.0",parameters:{Region:j,UseDualStack:k,UseFIPS:k,Endpoint:j},rules:[{conditions:[{[x]:b,[y]:[l]}],rules:[{conditions:t,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:d},{conditions:u,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:d},{endpoint:{url:l,properties:o,headers:o},type:e}],type:f},{conditions:[{[x]:b,[y]:v}],rules:[{conditions:[{[x]:"aws.partition",[y]:v,assign:g}],rules:[{conditions:[m,n],rules:[{conditions:[{[x]:c,[y]:[a,q]},s],rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:e}],type:f},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:d}],type:f},{conditions:t,rules:[{conditions:[{[x]:c,[y]:[q,a]}],rules:[{endpoint:{url:"https://entitlement.marketplace-fips.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:e}],type:f},{error:"FIPS is enabled but this partition does not support FIPS",type:d}],type:f},{conditions:u,rules:[{conditions:[s],rules:[{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:o,headers:o},type:e}],type:f},{error:"DualStack is enabled but this partition does not support DualStack",type:d}],type:f},{conditions:[{[x]:i,[y]:[p,"cn-northwest-1"]}],endpoint:{url:"https://entitlement-marketplace.cn-northwest-1.amazonaws.com.cn",properties:o,headers:o},type:e},{conditions:[{[x]:i,[y]:["aws",{[x]:h,[y]:[r,"name"]}]}],endpoint:{url:"https://entitlement.marketplace.{Region}.amazonaws.com",properties:o,headers:o},type:e},{endpoint:{url:"https://entitlement.marketplace.{Region}.{PartitionResult#dnsSuffix}",properties:o,headers:o},type:e}],type:f}],type:f},{error:"Invalid Configuration: Missing Region",type:d}]};
3436
export const ruleSet: RuleSetObject = _data;

Diff for: codegen/sdk-codegen/aws-models/marketplace-entitlement-service.json

+32
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,25 @@
344344
],
345345
"type": "tree"
346346
},
347+
{
348+
"conditions": [
349+
{
350+
"fn": "stringEquals",
351+
"argv": [
352+
{
353+
"ref": "Region"
354+
},
355+
"cn-northwest-1"
356+
]
357+
}
358+
],
359+
"endpoint": {
360+
"url": "https://entitlement-marketplace.cn-northwest-1.amazonaws.com.cn",
361+
"properties": {},
362+
"headers": {}
363+
},
364+
"type": "endpoint"
365+
},
347366
{
348367
"conditions": [
349368
{
@@ -445,6 +464,19 @@
445464
"UseDualStack": true
446465
}
447466
},
467+
{
468+
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack disabled",
469+
"expect": {
470+
"endpoint": {
471+
"url": "https://entitlement-marketplace.cn-northwest-1.amazonaws.com.cn"
472+
}
473+
},
474+
"params": {
475+
"Region": "cn-northwest-1",
476+
"UseFIPS": false,
477+
"UseDualStack": false
478+
}
479+
},
448480
{
449481
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
450482
"expect": {

0 commit comments

Comments
 (0)