Skip to content

Commit d21b9a4

Browse files
author
AWS
committed
AWS IoT Secure Tunneling Update: Adds dualstack endpoint support for IoT Secure Tunneling
1 parent 5043265 commit d21b9a4

File tree

4 files changed

+568
-72
lines changed

4 files changed

+568
-72
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 IoT Secure Tunneling",
4+
"contributor": "",
5+
"description": "Adds dualstack endpoint support for IoT Secure Tunneling"
6+
}

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

Lines changed: 170 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -83,7 +82,8 @@
8382
},
8483
"type": "endpoint"
8584
}
86-
]
85+
],
86+
"type": "tree"
8787
},
8888
{
8989
"conditions": [
@@ -96,7 +96,6 @@
9696
]
9797
}
9898
],
99-
"type": "tree",
10099
"rules": [
101100
{
102101
"conditions": [
@@ -110,7 +109,6 @@
110109
"assign": "PartitionResult"
111110
}
112111
],
113-
"type": "tree",
114112
"rules": [
115113
{
116114
"conditions": [
@@ -133,7 +131,6 @@
133131
]
134132
}
135133
],
136-
"type": "tree",
137134
"rules": [
138135
{
139136
"conditions": [
@@ -168,8 +165,82 @@
168165
]
169166
}
170167
],
171-
"type": "tree",
172168
"rules": [
169+
{
170+
"conditions": [
171+
{
172+
"fn": "stringEquals",
173+
"argv": [
174+
"aws",
175+
{
176+
"fn": "getAttr",
177+
"argv": [
178+
{
179+
"ref": "PartitionResult"
180+
},
181+
"name"
182+
]
183+
}
184+
]
185+
}
186+
],
187+
"endpoint": {
188+
"url": "https://api.iot-tunneling-fips.{Region}.api.aws",
189+
"properties": {},
190+
"headers": {}
191+
},
192+
"type": "endpoint"
193+
},
194+
{
195+
"conditions": [
196+
{
197+
"fn": "stringEquals",
198+
"argv": [
199+
"aws-cn",
200+
{
201+
"fn": "getAttr",
202+
"argv": [
203+
{
204+
"ref": "PartitionResult"
205+
},
206+
"name"
207+
]
208+
}
209+
]
210+
}
211+
],
212+
"endpoint": {
213+
"url": "https://api.iot-tunneling-fips.{Region}.api.amazonwebservices.com.cn",
214+
"properties": {},
215+
"headers": {}
216+
},
217+
"type": "endpoint"
218+
},
219+
{
220+
"conditions": [
221+
{
222+
"fn": "stringEquals",
223+
"argv": [
224+
"aws-us-gov",
225+
{
226+
"fn": "getAttr",
227+
"argv": [
228+
{
229+
"ref": "PartitionResult"
230+
},
231+
"name"
232+
]
233+
}
234+
]
235+
}
236+
],
237+
"endpoint": {
238+
"url": "https://api.iot-tunneling-fips.{Region}.api.aws",
239+
"properties": {},
240+
"headers": {}
241+
},
242+
"type": "endpoint"
243+
},
173244
{
174245
"conditions": [],
175246
"endpoint": {
@@ -179,14 +250,16 @@
179250
},
180251
"type": "endpoint"
181252
}
182-
]
253+
],
254+
"type": "tree"
183255
},
184256
{
185257
"conditions": [],
186258
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187259
"type": "error"
188260
}
189-
]
261+
],
262+
"type": "tree"
190263
},
191264
{
192265
"conditions": [
@@ -200,14 +273,12 @@
200273
]
201274
}
202275
],
203-
"type": "tree",
204276
"rules": [
205277
{
206278
"conditions": [
207279
{
208280
"fn": "booleanEquals",
209281
"argv": [
210-
true,
211282
{
212283
"fn": "getAttr",
213284
"argv": [
@@ -216,11 +287,11 @@
216287
},
217288
"supportsFIPS"
218289
]
219-
}
290+
},
291+
true
220292
]
221293
}
222294
],
223-
"type": "tree",
224295
"rules": [
225296
{
226297
"conditions": [],
@@ -231,14 +302,16 @@
231302
},
232303
"type": "endpoint"
233304
}
234-
]
305+
],
306+
"type": "tree"
235307
},
236308
{
237309
"conditions": [],
238310
"error": "FIPS is enabled but this partition does not support FIPS",
239311
"type": "error"
240312
}
241-
]
313+
],
314+
"type": "tree"
242315
},
243316
{
244317
"conditions": [
@@ -252,7 +325,6 @@
252325
]
253326
}
254327
],
255-
"type": "tree",
256328
"rules": [
257329
{
258330
"conditions": [
@@ -272,8 +344,82 @@
272344
]
273345
}
274346
],
275-
"type": "tree",
276347
"rules": [
348+
{
349+
"conditions": [
350+
{
351+
"fn": "stringEquals",
352+
"argv": [
353+
"aws",
354+
{
355+
"fn": "getAttr",
356+
"argv": [
357+
{
358+
"ref": "PartitionResult"
359+
},
360+
"name"
361+
]
362+
}
363+
]
364+
}
365+
],
366+
"endpoint": {
367+
"url": "https://api.iot-tunneling.{Region}.api.aws",
368+
"properties": {},
369+
"headers": {}
370+
},
371+
"type": "endpoint"
372+
},
373+
{
374+
"conditions": [
375+
{
376+
"fn": "stringEquals",
377+
"argv": [
378+
"aws-cn",
379+
{
380+
"fn": "getAttr",
381+
"argv": [
382+
{
383+
"ref": "PartitionResult"
384+
},
385+
"name"
386+
]
387+
}
388+
]
389+
}
390+
],
391+
"endpoint": {
392+
"url": "https://api.iot-tunneling.{Region}.api.amazonwebservices.com.cn",
393+
"properties": {},
394+
"headers": {}
395+
},
396+
"type": "endpoint"
397+
},
398+
{
399+
"conditions": [
400+
{
401+
"fn": "stringEquals",
402+
"argv": [
403+
"aws-us-gov",
404+
{
405+
"fn": "getAttr",
406+
"argv": [
407+
{
408+
"ref": "PartitionResult"
409+
},
410+
"name"
411+
]
412+
}
413+
]
414+
}
415+
],
416+
"endpoint": {
417+
"url": "https://api.iot-tunneling.{Region}.api.aws",
418+
"properties": {},
419+
"headers": {}
420+
},
421+
"type": "endpoint"
422+
},
277423
{
278424
"conditions": [],
279425
"endpoint": {
@@ -283,14 +429,16 @@
283429
},
284430
"type": "endpoint"
285431
}
286-
]
432+
],
433+
"type": "tree"
287434
},
288435
{
289436
"conditions": [],
290437
"error": "DualStack is enabled but this partition does not support DualStack",
291438
"type": "error"
292439
}
293-
]
440+
],
441+
"type": "tree"
294442
},
295443
{
296444
"conditions": [],
@@ -301,9 +449,11 @@
301449
},
302450
"type": "endpoint"
303451
}
304-
]
452+
],
453+
"type": "tree"
305454
}
306-
]
455+
],
456+
"type": "tree"
307457
},
308458
{
309459
"conditions": [],

0 commit comments

Comments
 (0)