Skip to content

Commit 1b7ece7

Browse files
author
AWS
committed
Amazon Timestream Write Update: Add dualstack endpoints support.
1 parent 5555b63 commit 1b7ece7

File tree

4 files changed

+377
-35
lines changed

4 files changed

+377
-35
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": "Amazon Timestream Write",
4+
"contributor": "",
5+
"description": "Add dualstack endpoints support."
6+
}

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

Lines changed: 122 additions & 22 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,57 @@
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://timestream-ingest-fips.{Region}.api.aws",
189+
"properties": {},
190+
"headers": {}
191+
},
192+
"type": "endpoint"
193+
},
194+
{
195+
"conditions": [
196+
{
197+
"fn": "stringEquals",
198+
"argv": [
199+
"aws-us-gov",
200+
{
201+
"fn": "getAttr",
202+
"argv": [
203+
{
204+
"ref": "PartitionResult"
205+
},
206+
"name"
207+
]
208+
}
209+
]
210+
}
211+
],
212+
"endpoint": {
213+
"url": "https://timestream-ingest.{Region}.api.aws",
214+
"properties": {},
215+
"headers": {}
216+
},
217+
"type": "endpoint"
218+
},
173219
{
174220
"conditions": [],
175221
"endpoint": {
@@ -179,14 +225,16 @@
179225
},
180226
"type": "endpoint"
181227
}
182-
]
228+
],
229+
"type": "tree"
183230
},
184231
{
185232
"conditions": [],
186233
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187234
"type": "error"
188235
}
189-
]
236+
],
237+
"type": "tree"
190238
},
191239
{
192240
"conditions": [
@@ -200,14 +248,12 @@
200248
]
201249
}
202250
],
203-
"type": "tree",
204251
"rules": [
205252
{
206253
"conditions": [
207254
{
208255
"fn": "booleanEquals",
209256
"argv": [
210-
true,
211257
{
212258
"fn": "getAttr",
213259
"argv": [
@@ -216,18 +262,17 @@
216262
},
217263
"supportsFIPS"
218264
]
219-
}
265+
},
266+
true
220267
]
221268
}
222269
],
223-
"type": "tree",
224270
"rules": [
225271
{
226272
"conditions": [
227273
{
228274
"fn": "stringEquals",
229275
"argv": [
230-
"aws-us-gov",
231276
{
232277
"fn": "getAttr",
233278
"argv": [
@@ -236,7 +281,8 @@
236281
},
237282
"name"
238283
]
239-
}
284+
},
285+
"aws-us-gov"
240286
]
241287
}
242288
],
@@ -256,14 +302,16 @@
256302
},
257303
"type": "endpoint"
258304
}
259-
]
305+
],
306+
"type": "tree"
260307
},
261308
{
262309
"conditions": [],
263310
"error": "FIPS is enabled but this partition does not support FIPS",
264311
"type": "error"
265312
}
266-
]
313+
],
314+
"type": "tree"
267315
},
268316
{
269317
"conditions": [
@@ -277,7 +325,6 @@
277325
]
278326
}
279327
],
280-
"type": "tree",
281328
"rules": [
282329
{
283330
"conditions": [
@@ -297,8 +344,57 @@
297344
]
298345
}
299346
],
300-
"type": "tree",
301347
"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://timestream-ingest.{Region}.api.aws",
368+
"properties": {},
369+
"headers": {}
370+
},
371+
"type": "endpoint"
372+
},
373+
{
374+
"conditions": [
375+
{
376+
"fn": "stringEquals",
377+
"argv": [
378+
"aws-us-gov",
379+
{
380+
"fn": "getAttr",
381+
"argv": [
382+
{
383+
"ref": "PartitionResult"
384+
},
385+
"name"
386+
]
387+
}
388+
]
389+
}
390+
],
391+
"endpoint": {
392+
"url": "https://timestream-ingest.{Region}.api.aws",
393+
"properties": {},
394+
"headers": {}
395+
},
396+
"type": "endpoint"
397+
},
302398
{
303399
"conditions": [],
304400
"endpoint": {
@@ -308,14 +404,16 @@
308404
},
309405
"type": "endpoint"
310406
}
311-
]
407+
],
408+
"type": "tree"
312409
},
313410
{
314411
"conditions": [],
315412
"error": "DualStack is enabled but this partition does not support DualStack",
316413
"type": "error"
317414
}
318-
]
415+
],
416+
"type": "tree"
319417
},
320418
{
321419
"conditions": [],
@@ -326,9 +424,11 @@
326424
},
327425
"type": "endpoint"
328426
}
329-
]
427+
],
428+
"type": "tree"
330429
}
331-
]
430+
],
431+
"type": "tree"
332432
},
333433
{
334434
"conditions": [],

0 commit comments

Comments
 (0)