Skip to content

Commit e099b6d

Browse files
author
AWS
committed
AWS Secrets Manager Update: Update endpoint rules and examples.
1 parent c495536 commit e099b6d

File tree

3 files changed

+136
-5
lines changed

3 files changed

+136
-5
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 Secrets Manager",
4+
"contributor": "",
5+
"description": "Update endpoint rules and examples."
6+
}

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

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,56 @@
166166
}
167167
],
168168
"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://secretsmanager-fips.{Region}.amazonaws.com",
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://secretsmanager-fips.{Region}.amazonaws.com",
214+
"properties": {},
215+
"headers": {}
216+
},
217+
"type": "endpoint"
218+
},
169219
{
170220
"conditions": [],
171221
"endpoint": {
@@ -270,6 +320,81 @@
270320
}
271321
],
272322
"rules": [
323+
{
324+
"conditions": [
325+
{
326+
"fn": "stringEquals",
327+
"argv": [
328+
"aws",
329+
{
330+
"fn": "getAttr",
331+
"argv": [
332+
{
333+
"ref": "PartitionResult"
334+
},
335+
"name"
336+
]
337+
}
338+
]
339+
}
340+
],
341+
"endpoint": {
342+
"url": "https://secretsmanager.{Region}.amazonaws.com",
343+
"properties": {},
344+
"headers": {}
345+
},
346+
"type": "endpoint"
347+
},
348+
{
349+
"conditions": [
350+
{
351+
"fn": "stringEquals",
352+
"argv": [
353+
"aws-cn",
354+
{
355+
"fn": "getAttr",
356+
"argv": [
357+
{
358+
"ref": "PartitionResult"
359+
},
360+
"name"
361+
]
362+
}
363+
]
364+
}
365+
],
366+
"endpoint": {
367+
"url": "https://secretsmanager.{Region}.amazonaws.com.cn",
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://secretsmanager.{Region}.amazonaws.com",
393+
"properties": {},
394+
"headers": {}
395+
},
396+
"type": "endpoint"
397+
},
273398
{
274399
"conditions": [],
275400
"endpoint": {

services/secretsmanager/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
356356
"expect": {
357357
"endpoint": {
358-
"url": "https://secretsmanager-fips.us-east-1.api.aws"
358+
"url": "https://secretsmanager-fips.us-east-1.amazonaws.com"
359359
}
360360
},
361361
"params": {
@@ -368,7 +368,7 @@
368368
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
369369
"expect": {
370370
"endpoint": {
371-
"url": "https://secretsmanager.us-east-1.api.aws"
371+
"url": "https://secretsmanager.us-east-1.amazonaws.com"
372372
}
373373
},
374374
"params": {
@@ -433,7 +433,7 @@
433433
"documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled",
434434
"expect": {
435435
"endpoint": {
436-
"url": "https://secretsmanager.cn-north-1.api.amazonwebservices.com.cn"
436+
"url": "https://secretsmanager.cn-north-1.amazonaws.com.cn"
437437
}
438438
},
439439
"params": {
@@ -498,7 +498,7 @@
498498
"documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled",
499499
"expect": {
500500
"endpoint": {
501-
"url": "https://secretsmanager-fips.us-gov-east-1.api.aws"
501+
"url": "https://secretsmanager-fips.us-gov-east-1.amazonaws.com"
502502
}
503503
},
504504
"params": {
@@ -511,7 +511,7 @@
511511
"documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled",
512512
"expect": {
513513
"endpoint": {
514-
"url": "https://secretsmanager.us-gov-east-1.api.aws"
514+
"url": "https://secretsmanager.us-gov-east-1.amazonaws.com"
515515
}
516516
},
517517
"params": {

0 commit comments

Comments
 (0)