Skip to content

Commit 325d512

Browse files
author
AWS
committed
AWS Health APIs and Notifications Update: Updating Health API endpoint generation for dualstack only regions
1 parent 4a2a390 commit 325d512

File tree

3 files changed

+737
-0
lines changed

3 files changed

+737
-0
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 Health APIs and Notifications",
4+
"contributor": "",
5+
"description": "Updating Health API endpoint generation for dualstack only regions"
6+
}

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

Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,220 @@
2929
}
3030
},
3131
"rules": [
32+
{
33+
"conditions": [
34+
{
35+
"fn": "not",
36+
"argv": [
37+
{
38+
"fn": "isSet",
39+
"argv": [
40+
{
41+
"ref": "Endpoint"
42+
}
43+
]
44+
}
45+
]
46+
},
47+
{
48+
"fn": "booleanEquals",
49+
"argv": [
50+
{
51+
"ref": "UseDualStack"
52+
},
53+
false
54+
]
55+
},
56+
{
57+
"fn": "isSet",
58+
"argv": [
59+
{
60+
"ref": "Region"
61+
}
62+
]
63+
},
64+
{
65+
"fn": "aws.partition",
66+
"argv": [
67+
{
68+
"ref": "Region"
69+
}
70+
],
71+
"assign": "PartitionResult"
72+
},
73+
{
74+
"fn": "not",
75+
"argv": [
76+
{
77+
"fn": "stringEquals",
78+
"argv": [
79+
{
80+
"fn": "getAttr",
81+
"argv": [
82+
{
83+
"ref": "PartitionResult"
84+
},
85+
"name"
86+
]
87+
},
88+
"aws"
89+
]
90+
}
91+
]
92+
},
93+
{
94+
"fn": "not",
95+
"argv": [
96+
{
97+
"fn": "stringEquals",
98+
"argv": [
99+
{
100+
"fn": "getAttr",
101+
"argv": [
102+
{
103+
"ref": "PartitionResult"
104+
},
105+
"name"
106+
]
107+
},
108+
"aws-cn"
109+
]
110+
}
111+
]
112+
},
113+
{
114+
"fn": "not",
115+
"argv": [
116+
{
117+
"fn": "stringEquals",
118+
"argv": [
119+
{
120+
"fn": "getAttr",
121+
"argv": [
122+
{
123+
"ref": "PartitionResult"
124+
},
125+
"name"
126+
]
127+
},
128+
"aws-us-gov"
129+
]
130+
}
131+
]
132+
},
133+
{
134+
"fn": "not",
135+
"argv": [
136+
{
137+
"fn": "stringEquals",
138+
"argv": [
139+
{
140+
"fn": "getAttr",
141+
"argv": [
142+
{
143+
"ref": "PartitionResult"
144+
},
145+
"name"
146+
]
147+
},
148+
"aws-iso"
149+
]
150+
}
151+
]
152+
},
153+
{
154+
"fn": "not",
155+
"argv": [
156+
{
157+
"fn": "stringEquals",
158+
"argv": [
159+
{
160+
"fn": "getAttr",
161+
"argv": [
162+
{
163+
"ref": "PartitionResult"
164+
},
165+
"name"
166+
]
167+
},
168+
"aws-iso-b"
169+
]
170+
}
171+
]
172+
},
173+
{
174+
"fn": "not",
175+
"argv": [
176+
{
177+
"fn": "stringEquals",
178+
"argv": [
179+
{
180+
"fn": "getAttr",
181+
"argv": [
182+
{
183+
"ref": "PartitionResult"
184+
},
185+
"name"
186+
]
187+
},
188+
"aws-iso-e"
189+
]
190+
}
191+
]
192+
},
193+
{
194+
"fn": "not",
195+
"argv": [
196+
{
197+
"fn": "stringEquals",
198+
"argv": [
199+
{
200+
"fn": "getAttr",
201+
"argv": [
202+
{
203+
"ref": "PartitionResult"
204+
},
205+
"name"
206+
]
207+
},
208+
"aws-iso-f"
209+
]
210+
}
211+
]
212+
}
213+
],
214+
"rules": [
215+
{
216+
"conditions": [
217+
{
218+
"fn": "booleanEquals",
219+
"argv": [
220+
{
221+
"ref": "UseFIPS"
222+
},
223+
true
224+
]
225+
}
226+
],
227+
"endpoint": {
228+
"url": "https://health-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
229+
"properties": {},
230+
"headers": {}
231+
},
232+
"type": "endpoint"
233+
},
234+
{
235+
"conditions": [],
236+
"endpoint": {
237+
"url": "https://health.{Region}.{PartitionResult#dualStackDnsSuffix}",
238+
"properties": {},
239+
"headers": {}
240+
},
241+
"type": "endpoint"
242+
}
243+
],
244+
"type": "tree"
245+
},
32246
{
33247
"conditions": [
34248
{

0 commit comments

Comments
 (0)