Skip to content

Commit f70e5b8

Browse files
author
AWS
committed
AWS Backup Search Update: Using recommended smithy trait to generate regional endpoints for Backup Search
1 parent 4c02086 commit f70e5b8

File tree

4 files changed

+14
-72
lines changed

4 files changed

+14
-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 Backup Search",
4+
"contributor": "",
5+
"description": "Using recommended smithy trait to generate regional endpoints for Backup Search"
6+
}

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

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -104,31 +104,17 @@
104104
}
105105
],
106106
"endpoint": {
107-
"url": "https://backup-search-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",
108-
"properties": {
109-
"authSchemes": [
110-
{
111-
"name": "sigv4",
112-
"signingRegion": "{PartitionResult#implicitGlobalRegion}"
113-
}
114-
]
115-
},
107+
"url": "https://backup-search-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
108+
"properties": {},
116109
"headers": {}
117110
},
118111
"type": "endpoint"
119112
},
120113
{
121114
"conditions": [],
122115
"endpoint": {
123-
"url": "https://backup-search.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}",
124-
"properties": {
125-
"authSchemes": [
126-
{
127-
"name": "sigv4",
128-
"signingRegion": "{PartitionResult#implicitGlobalRegion}"
129-
}
130-
]
131-
},
116+
"url": "https://backup-search.{Region}.{PartitionResult#dualStackDnsSuffix}",
117+
"properties": {},
132118
"headers": {}
133119
},
134120
"type": "endpoint"

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

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@
2626
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
2727
"expect": {
2828
"endpoint": {
29-
"properties": {
30-
"authSchemes": [
31-
{
32-
"name": "sigv4",
33-
"signingRegion": "us-east-1"
34-
}
35-
]
36-
},
3729
"url": "https://backup-search-fips.us-east-1.api.aws"
3830
}
3931
},
@@ -46,14 +38,6 @@
4638
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
4739
"expect": {
4840
"endpoint": {
49-
"properties": {
50-
"authSchemes": [
51-
{
52-
"name": "sigv4",
53-
"signingRegion": "us-east-1"
54-
}
55-
]
56-
},
5741
"url": "https://backup-search.us-east-1.api.aws"
5842
}
5943
},
@@ -66,14 +50,6 @@
6650
"documentation": "For region cn-northwest-1 with FIPS enabled and DualStack enabled",
6751
"expect": {
6852
"endpoint": {
69-
"properties": {
70-
"authSchemes": [
71-
{
72-
"name": "sigv4",
73-
"signingRegion": "cn-northwest-1"
74-
}
75-
]
76-
},
7753
"url": "https://backup-search-fips.cn-northwest-1.api.amazonwebservices.com.cn"
7854
}
7955
},
@@ -86,14 +62,6 @@
8662
"documentation": "For region cn-northwest-1 with FIPS disabled and DualStack enabled",
8763
"expect": {
8864
"endpoint": {
89-
"properties": {
90-
"authSchemes": [
91-
{
92-
"name": "sigv4",
93-
"signingRegion": "cn-northwest-1"
94-
}
95-
]
96-
},
9765
"url": "https://backup-search.cn-northwest-1.api.amazonwebservices.com.cn"
9866
}
9967
},
@@ -106,14 +74,6 @@
10674
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
10775
"expect": {
10876
"endpoint": {
109-
"properties": {
110-
"authSchemes": [
111-
{
112-
"name": "sigv4",
113-
"signingRegion": "us-gov-west-1"
114-
}
115-
]
116-
},
11777
"url": "https://backup-search-fips.us-gov-west-1.api.aws"
11878
}
11979
},
@@ -126,14 +86,6 @@
12686
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
12787
"expect": {
12888
"endpoint": {
129-
"properties": {
130-
"authSchemes": [
131-
{
132-
"name": "sigv4",
133-
"signingRegion": "us-gov-west-1"
134-
}
135-
]
136-
},
13789
"url": "https://backup-search.us-gov-west-1.api.aws"
13890
}
13991
},

services/backupsearch/src/main/resources/codegen-resources/service-2.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
"input":{"shape":"StartSearchJobInput"},
150150
"output":{"shape":"StartSearchJobOutput"},
151151
"errors":[
152+
{"shape":"ResourceNotFoundException"},
152153
{"shape":"ThrottlingException"},
153154
{"shape":"AccessDeniedException"},
154155
{"shape":"ValidationException"},
@@ -1291,8 +1292,7 @@
12911292
},
12921293
"StopSearchJobOutput":{
12931294
"type":"structure",
1294-
"members":{
1295-
}
1295+
"members":{}
12961296
},
12971297
"String":{"type":"string"},
12981298
"StringCondition":{
@@ -1359,8 +1359,7 @@
13591359
},
13601360
"TagResourceResponse":{
13611361
"type":"structure",
1362-
"members":{
1363-
}
1362+
"members":{}
13641363
},
13651364
"ThrottlingException":{
13661365
"type":"structure",
@@ -1447,8 +1446,7 @@
14471446
},
14481447
"UntagResourceResponse":{
14491448
"type":"structure",
1450-
"members":{
1451-
}
1449+
"members":{}
14521450
},
14531451
"ValidationException":{
14541452
"type":"structure",

0 commit comments

Comments
 (0)