Skip to content

Commit 329de50

Browse files
author
AWS
committed
AWS Artifact Update: Add support for ListReportVersions API for the calling AWS account.
1 parent a3bd3dc commit 329de50

File tree

4 files changed

+141
-66
lines changed

4 files changed

+141
-66
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 Artifact",
4+
"contributor": "",
5+
"description": "Add support for ListReportVersions API for the calling AWS account."
6+
}

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

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -202,85 +202,43 @@
202202
}
203203
},
204204
{
205-
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
206-
"expect": {
207-
"endpoint": {
208-
"properties": {
209-
"authSchemes": [
210-
{
211-
"name": "sigv4",
212-
"signingRegion": "us-gov-west-1"
213-
}
214-
]
215-
},
216-
"url": "https://artifact-fips.us-gov-west-1.api.aws"
217-
}
218-
},
219-
"params": {
220-
"Region": "us-gov-west-1",
221-
"UseFIPS": true,
222-
"UseDualStack": true
223-
}
224-
},
225-
{
226-
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
205+
"documentation": "For region eusc-de-east-1 with FIPS enabled and DualStack disabled",
227206
"expect": {
228207
"endpoint": {
229208
"properties": {
230209
"authSchemes": [
231210
{
232211
"name": "sigv4",
233-
"signingRegion": "us-gov-west-1"
212+
"signingRegion": "eusc-de-east-1"
234213
}
235214
]
236215
},
237-
"url": "https://artifact-fips.us-gov-west-1.amazonaws.com"
216+
"url": "https://artifact-fips.eusc-de-east-1.amazonaws.eu"
238217
}
239218
},
240219
"params": {
241-
"Region": "us-gov-west-1",
220+
"Region": "eusc-de-east-1",
242221
"UseFIPS": true,
243222
"UseDualStack": false
244223
}
245224
},
246225
{
247-
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
248-
"expect": {
249-
"endpoint": {
250-
"properties": {
251-
"authSchemes": [
252-
{
253-
"name": "sigv4",
254-
"signingRegion": "us-gov-west-1"
255-
}
256-
]
257-
},
258-
"url": "https://artifact.us-gov-west-1.api.aws"
259-
}
260-
},
261-
"params": {
262-
"Region": "us-gov-west-1",
263-
"UseFIPS": false,
264-
"UseDualStack": true
265-
}
266-
},
267-
{
268-
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
226+
"documentation": "For region eusc-de-east-1 with FIPS disabled and DualStack disabled",
269227
"expect": {
270228
"endpoint": {
271229
"properties": {
272230
"authSchemes": [
273231
{
274232
"name": "sigv4",
275-
"signingRegion": "us-gov-west-1"
233+
"signingRegion": "eusc-de-east-1"
276234
}
277235
]
278236
},
279-
"url": "https://artifact.us-gov-west-1.amazonaws.com"
237+
"url": "https://artifact.eusc-de-east-1.amazonaws.eu"
280238
}
281239
},
282240
"params": {
283-
"Region": "us-gov-west-1",
241+
"Region": "eusc-de-east-1",
284242
"UseFIPS": false,
285243
"UseDualStack": false
286244
}
@@ -454,43 +412,85 @@
454412
}
455413
},
456414
{
457-
"documentation": "For region eusc-de-east-1 with FIPS enabled and DualStack disabled",
415+
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack enabled",
458416
"expect": {
459417
"endpoint": {
460418
"properties": {
461419
"authSchemes": [
462420
{
463421
"name": "sigv4",
464-
"signingRegion": "eusc-de-east-1"
422+
"signingRegion": "us-gov-west-1"
465423
}
466424
]
467425
},
468-
"url": "https://artifact-fips.eusc-de-east-1.amazonaws.eu"
426+
"url": "https://artifact-fips.us-gov-west-1.api.aws"
469427
}
470428
},
471429
"params": {
472-
"Region": "eusc-de-east-1",
430+
"Region": "us-gov-west-1",
431+
"UseFIPS": true,
432+
"UseDualStack": true
433+
}
434+
},
435+
{
436+
"documentation": "For region us-gov-west-1 with FIPS enabled and DualStack disabled",
437+
"expect": {
438+
"endpoint": {
439+
"properties": {
440+
"authSchemes": [
441+
{
442+
"name": "sigv4",
443+
"signingRegion": "us-gov-west-1"
444+
}
445+
]
446+
},
447+
"url": "https://artifact-fips.us-gov-west-1.amazonaws.com"
448+
}
449+
},
450+
"params": {
451+
"Region": "us-gov-west-1",
473452
"UseFIPS": true,
474453
"UseDualStack": false
475454
}
476455
},
477456
{
478-
"documentation": "For region eusc-de-east-1 with FIPS disabled and DualStack disabled",
457+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack enabled",
479458
"expect": {
480459
"endpoint": {
481460
"properties": {
482461
"authSchemes": [
483462
{
484463
"name": "sigv4",
485-
"signingRegion": "eusc-de-east-1"
464+
"signingRegion": "us-gov-west-1"
486465
}
487466
]
488467
},
489-
"url": "https://artifact.eusc-de-east-1.amazonaws.eu"
468+
"url": "https://artifact.us-gov-west-1.api.aws"
490469
}
491470
},
492471
"params": {
493-
"Region": "eusc-de-east-1",
472+
"Region": "us-gov-west-1",
473+
"UseFIPS": false,
474+
"UseDualStack": true
475+
}
476+
},
477+
{
478+
"documentation": "For region us-gov-west-1 with FIPS disabled and DualStack disabled",
479+
"expect": {
480+
"endpoint": {
481+
"properties": {
482+
"authSchemes": [
483+
{
484+
"name": "sigv4",
485+
"signingRegion": "us-gov-west-1"
486+
}
487+
]
488+
},
489+
"url": "https://artifact.us-gov-west-1.amazonaws.com"
490+
}
491+
},
492+
"params": {
493+
"Region": "us-gov-west-1",
494494
"UseFIPS": false,
495495
"UseDualStack": false
496496
}

services/artifact/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
"limit_key": "maxResults",
77
"result_key": "customerAgreements"
88
},
9+
"ListReportVersions": {
10+
"input_token": "nextToken",
11+
"output_token": "nextToken",
12+
"limit_key": "maxResults",
13+
"result_key": "reports"
14+
},
915
"ListReports": {
1016
"input_token": "nextToken",
1117
"output_token": "nextToken",

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

Lines changed: 71 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
{"shape":"ValidationException"},
3232
{"shape":"ServiceQuotaExceededException"}
3333
],
34-
"documentation":"<p>Get the account settings for Artifact.</p>"
34+
"documentation":"<p>Get the account settings for Artifact.</p>",
35+
"readonly":true
3536
},
3637
"GetReport":{
3738
"name":"GetReport",
@@ -51,7 +52,8 @@
5152
{"shape":"ValidationException"},
5253
{"shape":"ServiceQuotaExceededException"}
5354
],
54-
"documentation":"<p>Get the content for a single report.</p>"
55+
"documentation":"<p>Get the content for a single report.</p>",
56+
"readonly":true
5557
},
5658
"GetReportMetadata":{
5759
"name":"GetReportMetadata",
@@ -70,7 +72,8 @@
7072
{"shape":"ValidationException"},
7173
{"shape":"ServiceQuotaExceededException"}
7274
],
73-
"documentation":"<p>Get the metadata for a single report.</p>"
75+
"documentation":"<p>Get the metadata for a single report.</p>",
76+
"readonly":true
7477
},
7578
"GetTermForReport":{
7679
"name":"GetTermForReport",
@@ -90,7 +93,8 @@
9093
{"shape":"ValidationException"},
9194
{"shape":"ServiceQuotaExceededException"}
9295
],
93-
"documentation":"<p>Get the Term content associated with a single report.</p>"
96+
"documentation":"<p>Get the Term content associated with a single report.</p>",
97+
"readonly":true
9498
},
9599
"ListCustomerAgreements":{
96100
"name":"ListCustomerAgreements",
@@ -107,7 +111,28 @@
107111
{"shape":"InternalServerException"},
108112
{"shape":"ValidationException"}
109113
],
110-
"documentation":"<p>List active customer-agreements applicable to calling identity.</p>"
114+
"documentation":"<p>List active customer-agreements applicable to calling identity.</p>",
115+
"readonly":true
116+
},
117+
"ListReportVersions":{
118+
"name":"ListReportVersions",
119+
"http":{
120+
"method":"GET",
121+
"requestUri":"/v1/report/listVersions",
122+
"responseCode":200
123+
},
124+
"input":{"shape":"ListReportVersionsRequest"},
125+
"output":{"shape":"ListReportVersionsResponse"},
126+
"errors":[
127+
{"shape":"ResourceNotFoundException"},
128+
{"shape":"ThrottlingException"},
129+
{"shape":"AccessDeniedException"},
130+
{"shape":"InternalServerException"},
131+
{"shape":"ValidationException"},
132+
{"shape":"ServiceQuotaExceededException"}
133+
],
134+
"documentation":"<p>List available report versions for a given report.</p>",
135+
"readonly":true
111136
},
112137
"ListReports":{
113138
"name":"ListReports",
@@ -126,7 +151,8 @@
126151
{"shape":"ValidationException"},
127152
{"shape":"ServiceQuotaExceededException"}
128153
],
129-
"documentation":"<p>List available reports.</p>"
154+
"documentation":"<p>List available reports.</p>",
155+
"readonly":true
130156
},
131157
"PutAccountSettings":{
132158
"name":"PutAccountSettings",
@@ -296,8 +322,7 @@
296322
},
297323
"GetAccountSettingsRequest":{
298324
"type":"structure",
299-
"members":{
300-
}
325+
"members":{}
301326
},
302327
"GetAccountSettingsResponse":{
303328
"type":"structure",
@@ -462,6 +487,44 @@
462487
}
463488
}
464489
},
490+
"ListReportVersionsRequest":{
491+
"type":"structure",
492+
"required":["reportId"],
493+
"members":{
494+
"reportId":{
495+
"shape":"ReportId",
496+
"documentation":"<p>Unique resource ID for the report resource.</p>",
497+
"location":"querystring",
498+
"locationName":"reportId"
499+
},
500+
"maxResults":{
501+
"shape":"MaxResultsAttribute",
502+
"documentation":"<p>Maximum number of resources to return in the paginated response.</p>",
503+
"location":"querystring",
504+
"locationName":"maxResults"
505+
},
506+
"nextToken":{
507+
"shape":"NextTokenAttribute",
508+
"documentation":"<p>Pagination token to request the next page of resources.</p>",
509+
"location":"querystring",
510+
"locationName":"nextToken"
511+
}
512+
}
513+
},
514+
"ListReportVersionsResponse":{
515+
"type":"structure",
516+
"required":["reports"],
517+
"members":{
518+
"reports":{
519+
"shape":"ReportsList",
520+
"documentation":"<p>List of report resources.</p>"
521+
},
522+
"nextToken":{
523+
"shape":"NextTokenAttribute",
524+
"documentation":"<p>Pagination token to request the next page of resources.</p>"
525+
}
526+
}
527+
},
465528
"ListReportsRequest":{
466529
"type":"structure",
467530
"members":{

0 commit comments

Comments
 (0)