Skip to content

Commit 5d67b8a

Browse files
Using recommended smithy trait to generate regional endpoints for Backup Search
1 parent dae0d16 commit 5d67b8a

12 files changed

+104
-144
lines changed

generator/ServiceModels/backupsearch/backupsearch-2018-05-10.api.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
"input":{"shape":"StartSearchJobInput"},
143143
"output":{"shape":"StartSearchJobOutput"},
144144
"errors":[
145+
{"shape":"ResourceNotFoundException"},
145146
{"shape":"ThrottlingException"},
146147
{"shape":"AccessDeniedException"},
147148
{"shape":"ValidationException"},
@@ -862,8 +863,7 @@
862863
},
863864
"StopSearchJobOutput":{
864865
"type":"structure",
865-
"members":{
866-
}
866+
"members":{}
867867
},
868868
"String":{"type":"string"},
869869
"StringCondition":{
@@ -919,8 +919,7 @@
919919
},
920920
"TagResourceResponse":{
921921
"type":"structure",
922-
"members":{
923-
}
922+
"members":{}
924923
},
925924
"ThrottlingException":{
926925
"type":"structure",
@@ -987,8 +986,7 @@
987986
},
988987
"UntagResourceResponse":{
989988
"type":"structure",
990-
"members":{
991-
}
989+
"members":{}
992990
},
993991
"ValidationException":{
994992
"type":"structure",

generator/ServiceModels/backupsearch/backupsearch-2018-05-10.docs.json

Lines changed: 31 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"shapes": {
1919
"AccessDeniedException": {
2020
"base": "<p>You do not have sufficient access to perform this action.</p>",
21-
"refs": {
22-
}
21+
"refs": {}
2322
},
2423
"BackupCreationTimeFilter": {
2524
"base": "<p>This filters by recovery points within the CreatedAfter and CreatedBefore timestamps.</p>",
@@ -29,8 +28,7 @@
2928
},
3029
"ConflictException": {
3130
"base": "<p>This exception occurs when a conflict with a previous successful operation is detected. This generally occurs when the previous operation did not have time to propagate to the host serving the current request.</p> <p>A retry (with appropriate backoff logic) is the recommended response to this exception.</p>",
32-
"refs": {
33-
}
31+
"refs": {}
3432
},
3533
"CurrentSearchProgress": {
3634
"base": "<p>This contains information results retrieved from a search job that may not have completed.</p>",
@@ -124,23 +122,19 @@
124122
},
125123
"GetSearchJobInput": {
126124
"base": null,
127-
"refs": {
128-
}
125+
"refs": {}
129126
},
130127
"GetSearchJobOutput": {
131128
"base": null,
132-
"refs": {
133-
}
129+
"refs": {}
134130
},
135131
"GetSearchResultExportJobInput": {
136132
"base": null,
137-
"refs": {
138-
}
133+
"refs": {}
139134
},
140135
"GetSearchResultExportJobOutput": {
141136
"base": null,
142-
"refs": {
143-
}
137+
"refs": {}
144138
},
145139
"IamRoleArn": {
146140
"base": null,
@@ -159,8 +153,7 @@
159153
},
160154
"InternalServerException": {
161155
"base": "<p>An internal server error occurred. Retry your request.</p>",
162-
"refs": {
163-
}
156+
"refs": {}
164157
},
165158
"ItemFilters": {
166159
"base": "<p>Item Filters represent all input item properties specified when the search was created.</p> <p>Contains either EBSItemFilters or S3ItemFilters</p>",
@@ -171,8 +164,7 @@
171164
},
172165
"ListSearchJobBackupsInput": {
173166
"base": null,
174-
"refs": {
175-
}
167+
"refs": {}
176168
},
177169
"ListSearchJobBackupsInputMaxResultsInteger": {
178170
"base": null,
@@ -182,13 +174,11 @@
182174
},
183175
"ListSearchJobBackupsOutput": {
184176
"base": null,
185-
"refs": {
186-
}
177+
"refs": {}
187178
},
188179
"ListSearchJobResultsInput": {
189180
"base": null,
190-
"refs": {
191-
}
181+
"refs": {}
192182
},
193183
"ListSearchJobResultsInputMaxResultsInteger": {
194184
"base": null,
@@ -198,13 +188,11 @@
198188
},
199189
"ListSearchJobResultsOutput": {
200190
"base": null,
201-
"refs": {
202-
}
191+
"refs": {}
203192
},
204193
"ListSearchJobsInput": {
205194
"base": null,
206-
"refs": {
207-
}
195+
"refs": {}
208196
},
209197
"ListSearchJobsInputMaxResultsInteger": {
210198
"base": null,
@@ -214,13 +202,11 @@
214202
},
215203
"ListSearchJobsOutput": {
216204
"base": null,
217-
"refs": {
218-
}
205+
"refs": {}
219206
},
220207
"ListSearchResultExportJobsInput": {
221208
"base": null,
222-
"refs": {
223-
}
209+
"refs": {}
224210
},
225211
"ListSearchResultExportJobsInputMaxResultsInteger": {
226212
"base": null,
@@ -230,18 +216,15 @@
230216
},
231217
"ListSearchResultExportJobsOutput": {
232218
"base": null,
233-
"refs": {
234-
}
219+
"refs": {}
235220
},
236221
"ListTagsForResourceRequest": {
237222
"base": null,
238-
"refs": {
239-
}
223+
"refs": {}
240224
},
241225
"ListTagsForResourceResponse": {
242226
"base": null,
243-
"refs": {
244-
}
227+
"refs": {}
245228
},
246229
"Long": {
247230
"base": null,
@@ -299,8 +282,7 @@
299282
},
300283
"ResourceNotFoundException": {
301284
"base": "<p>The resource was not found for this request.</p> <p>Confirm the resource information, such as the ARN or type is correct and exists, then retry the request.</p>",
302-
"refs": {
303-
}
285+
"refs": {}
304286
},
305287
"ResourceType": {
306288
"base": null,
@@ -410,13 +392,11 @@
410392
},
411393
"ServiceQuotaExceededException": {
412394
"base": "<p>The request denied due to exceeding the quota limits permitted.</p>",
413-
"refs": {
414-
}
395+
"refs": {}
415396
},
416397
"StartSearchJobInput": {
417398
"base": null,
418-
"refs": {
419-
}
399+
"refs": {}
420400
},
421401
"StartSearchJobInputNameString": {
422402
"base": null,
@@ -426,28 +406,23 @@
426406
},
427407
"StartSearchJobOutput": {
428408
"base": null,
429-
"refs": {
430-
}
409+
"refs": {}
431410
},
432411
"StartSearchResultExportJobInput": {
433412
"base": null,
434-
"refs": {
435-
}
413+
"refs": {}
436414
},
437415
"StartSearchResultExportJobOutput": {
438416
"base": null,
439-
"refs": {
440-
}
417+
"refs": {}
441418
},
442419
"StopSearchJobInput": {
443420
"base": null,
444-
"refs": {
445-
}
421+
"refs": {}
446422
},
447423
"StopSearchJobOutput": {
448424
"base": null,
449-
"refs": {
450-
}
425+
"refs": {}
451426
},
452427
"String": {
453428
"base": null,
@@ -548,18 +523,15 @@
548523
},
549524
"TagResourceRequest": {
550525
"base": null,
551-
"refs": {
552-
}
526+
"refs": {}
553527
},
554528
"TagResourceResponse": {
555529
"base": null,
556-
"refs": {
557-
}
530+
"refs": {}
558531
},
559532
"ThrottlingException": {
560533
"base": "<p>The request was denied due to request throttling.</p>",
561-
"refs": {
562-
}
534+
"refs": {}
563535
},
564536
"TimeCondition": {
565537
"base": "<p>A time condition denotes a creation time, last modification time, or other time.</p>",
@@ -605,18 +577,15 @@
605577
},
606578
"UntagResourceRequest": {
607579
"base": null,
608-
"refs": {
609-
}
580+
"refs": {}
610581
},
611582
"UntagResourceResponse": {
612583
"base": null,
613-
"refs": {
614-
}
584+
"refs": {}
615585
},
616586
"ValidationException": {
617587
"base": "<p>The input fails to satisfy the constraints specified by a service.</p>",
618-
"refs": {
619-
}
588+
"refs": {}
620589
}
621590
}
622591
}

generator/ServiceModels/backupsearch/backupsearch-2018-05-10.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"

0 commit comments

Comments
 (0)