Skip to content

Commit 3087533

Browse files
author
AWS
committed
AWS Elastic Beanstalk Update: Enabled FIPS endpoints for GovCloud (US) regions in SDK.
1 parent 5b019ab commit 3087533

File tree

5 files changed

+292
-1007
lines changed

5 files changed

+292
-1007
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Elastic Beanstalk",
4+
"contributor": "",
5+
"description": "Enabled FIPS endpoints for GovCloud (US) regions in SDK."
6+
}

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

+100-28
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://elasticbeanstalk-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://elasticbeanstalk-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
174+
"properties": {},
175+
"headers": {}
176+
},
177+
"type": "endpoint"
178+
}
179+
]
183180
}
184181
]
185182
},
@@ -228,6 +225,31 @@
228225
"conditions": [],
229226
"type": "tree",
230227
"rules": [
228+
{
229+
"conditions": [
230+
{
231+
"fn": "stringEquals",
232+
"argv": [
233+
"aws-us-gov",
234+
{
235+
"fn": "getAttr",
236+
"argv": [
237+
{
238+
"ref": "PartitionResult"
239+
},
240+
"name"
241+
]
242+
}
243+
]
244+
}
245+
],
246+
"endpoint": {
247+
"url": "https://elasticbeanstalk.{Region}.amazonaws.com",
248+
"properties": {},
249+
"headers": {}
250+
},
251+
"type": "endpoint"
252+
},
231253
{
232254
"conditions": [],
233255
"endpoint": {
@@ -284,12 +306,18 @@
284306
"rules": [
285307
{
286308
"conditions": [],
287-
"endpoint": {
288-
"url": "https://elasticbeanstalk.{Region}.{PartitionResult#dualStackDnsSuffix}",
289-
"properties": {},
290-
"headers": {}
291-
},
292-
"type": "endpoint"
309+
"type": "tree",
310+
"rules": [
311+
{
312+
"conditions": [],
313+
"endpoint": {
314+
"url": "https://elasticbeanstalk.{Region}.{PartitionResult#dualStackDnsSuffix}",
315+
"properties": {},
316+
"headers": {}
317+
},
318+
"type": "endpoint"
319+
}
320+
]
293321
}
294322
]
295323
},
@@ -302,12 +330,56 @@
302330
},
303331
{
304332
"conditions": [],
305-
"endpoint": {
306-
"url": "https://elasticbeanstalk.{Region}.{PartitionResult#dnsSuffix}",
307-
"properties": {},
308-
"headers": {}
309-
},
310-
"type": "endpoint"
333+
"type": "tree",
334+
"rules": [
335+
{
336+
"conditions": [
337+
{
338+
"fn": "stringEquals",
339+
"argv": [
340+
{
341+
"ref": "Region"
342+
},
343+
"us-gov-east-1"
344+
]
345+
}
346+
],
347+
"endpoint": {
348+
"url": "https://elasticbeanstalk.us-gov-east-1.amazonaws.com",
349+
"properties": {},
350+
"headers": {}
351+
},
352+
"type": "endpoint"
353+
},
354+
{
355+
"conditions": [
356+
{
357+
"fn": "stringEquals",
358+
"argv": [
359+
{
360+
"ref": "Region"
361+
},
362+
"us-gov-west-1"
363+
]
364+
}
365+
],
366+
"endpoint": {
367+
"url": "https://elasticbeanstalk.us-gov-west-1.amazonaws.com",
368+
"properties": {},
369+
"headers": {}
370+
},
371+
"type": "endpoint"
372+
},
373+
{
374+
"conditions": [],
375+
"endpoint": {
376+
"url": "https://elasticbeanstalk.{Region}.{PartitionResult#dnsSuffix}",
377+
"properties": {},
378+
"headers": {}
379+
},
380+
"type": "endpoint"
381+
}
382+
]
311383
}
312384
]
313385
}

0 commit comments

Comments
 (0)