Skip to content

Commit d9d6d60

Browse files
author
AWS
committed
AWS IoT Greengrass V2 Update: Enabled FIPS endpoints for GovCloud (US) in SDK.
1 parent cccd856 commit d9d6d60

File tree

3 files changed

+272
-678
lines changed

3 files changed

+272
-678
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS IoT Greengrass V2",
4+
"contributor": "",
5+
"description": "Enabled FIPS endpoints for GovCloud (US) in SDK."
6+
}

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

+118-23
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": {
44
"Region": {
55
"builtIn": "AWS::Region",
6-
"required": false,
6+
"required": true,
77
"documentation": "The AWS region used to dispatch the request.",
88
"type": "String"
99
},
@@ -52,15 +52,6 @@
5252
"ref": "Endpoint"
5353
}
5454
]
55-
},
56-
{
57-
"fn": "parseURL",
58-
"argv": [
59-
{
60-
"ref": "Endpoint"
61-
}
62-
],
63-
"assign": "url"
6455
}
6556
],
6657
"type": "tree",
@@ -174,12 +165,18 @@
174165
"rules": [
175166
{
176167
"conditions": [],
177-
"endpoint": {
178-
"url": "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
179-
"properties": {},
180-
"headers": {}
181-
},
182-
"type": "endpoint"
168+
"type": "tree",
169+
"rules": [
170+
{
171+
"conditions": [],
172+
"endpoint": {
173+
"url": "https://greengrass-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
174+
"properties": {},
175+
"headers": {}
176+
},
177+
"type": "endpoint"
178+
}
179+
]
183180
}
184181
]
185182
},
@@ -228,6 +225,44 @@
228225
"conditions": [],
229226
"type": "tree",
230227
"rules": [
228+
{
229+
"conditions": [
230+
{
231+
"fn": "stringEquals",
232+
"argv": [
233+
{
234+
"ref": "Region"
235+
},
236+
"us-gov-east-1"
237+
]
238+
}
239+
],
240+
"endpoint": {
241+
"url": "https://greengrass.us-gov-east-1.amazonaws.com",
242+
"properties": {},
243+
"headers": {}
244+
},
245+
"type": "endpoint"
246+
},
247+
{
248+
"conditions": [
249+
{
250+
"fn": "stringEquals",
251+
"argv": [
252+
{
253+
"ref": "Region"
254+
},
255+
"us-gov-west-1"
256+
]
257+
}
258+
],
259+
"endpoint": {
260+
"url": "https://greengrass.us-gov-west-1.amazonaws.com",
261+
"properties": {},
262+
"headers": {}
263+
},
264+
"type": "endpoint"
265+
},
231266
{
232267
"conditions": [],
233268
"endpoint": {
@@ -284,12 +319,18 @@
284319
"rules": [
285320
{
286321
"conditions": [],
287-
"endpoint": {
288-
"url": "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}",
289-
"properties": {},
290-
"headers": {}
291-
},
292-
"type": "endpoint"
322+
"type": "tree",
323+
"rules": [
324+
{
325+
"conditions": [],
326+
"endpoint": {
327+
"url": "https://greengrass.{Region}.{PartitionResult#dualStackDnsSuffix}",
328+
"properties": {},
329+
"headers": {}
330+
},
331+
"type": "endpoint"
332+
}
333+
]
293334
}
294335
]
295336
},
@@ -318,7 +359,15 @@
318359
],
319360
"endpoint": {
320361
"url": "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com",
321-
"properties": {},
362+
"properties": {
363+
"authSchemes": [
364+
{
365+
"name": "sigv4",
366+
"signingRegion": "us-gov-east-1",
367+
"signingName": "greengrass"
368+
}
369+
]
370+
},
322371
"headers": {}
323372
},
324373
"type": "endpoint"
@@ -337,6 +386,52 @@
337386
],
338387
"endpoint": {
339388
"url": "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com",
389+
"properties": {
390+
"authSchemes": [
391+
{
392+
"name": "sigv4",
393+
"signingRegion": "us-gov-west-1",
394+
"signingName": "greengrass"
395+
}
396+
]
397+
},
398+
"headers": {}
399+
},
400+
"type": "endpoint"
401+
},
402+
{
403+
"conditions": [
404+
{
405+
"fn": "stringEquals",
406+
"argv": [
407+
{
408+
"ref": "Region"
409+
},
410+
"us-gov-east-1"
411+
]
412+
}
413+
],
414+
"endpoint": {
415+
"url": "https://greengrass.us-gov-east-1.amazonaws.com",
416+
"properties": {},
417+
"headers": {}
418+
},
419+
"type": "endpoint"
420+
},
421+
{
422+
"conditions": [
423+
{
424+
"fn": "stringEquals",
425+
"argv": [
426+
{
427+
"ref": "Region"
428+
},
429+
"us-gov-west-1"
430+
]
431+
}
432+
],
433+
"endpoint": {
434+
"url": "https://greengrass.us-gov-west-1.amazonaws.com",
340435
"properties": {},
341436
"headers": {}
342437
},

0 commit comments

Comments
 (0)