Skip to content

Commit 49c31a1

Browse files
author
AWS
committed
AWS Resource Explorer Update: AWS Resource Explorer released ListResources feature which allows customers to list all indexed AWS resources within a view.
1 parent aa3a3f7 commit 49c31a1

File tree

3 files changed

+99
-5
lines changed

3 files changed

+99
-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 Resource Explorer",
4+
"contributor": "",
5+
"description": "AWS Resource Explorer released ListResources feature which allows customers to list all indexed AWS resources within a view."
6+
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
"limit_key": "MaxResults",
1313
"result_key": "Indexes"
1414
},
15+
"ListResources": {
16+
"input_token": "NextToken",
17+
"output_token": "NextToken",
18+
"limit_key": "MaxResults",
19+
"result_key": "Resources"
20+
},
1521
"ListSupportedResourceTypes": {
1622
"input_token": "NextToken",
1723
"output_token": "NextToken",

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

Lines changed: 87 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
"endpointPrefix":"resource-explorer-2",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceFullName":"AWS Resource Explorer",
910
"serviceId":"Resource Explorer 2",
1011
"signatureVersion":"v4",
1112
"signingName":"resource-explorer-2",
12-
"uid":"resource-explorer-2-2022-07-28"
13+
"uid":"resource-explorer-2-2022-07-28",
14+
"auth":["aws.auth#sigv4"]
1315
},
1416
"operations":{
1517
"AssociateDefaultView":{
@@ -158,7 +160,7 @@
158160
{"shape":"ThrottlingException"},
159161
{"shape":"AccessDeniedException"}
160162
],
161-
"documentation":"<p>Retrieves the status of your account's Amazon Web Services service access, and validates the service linked role required to access the multi-account search feature. Only the management account or a delegated administrator with service access enabled can invoke this API call. </p>"
163+
"documentation":"<p>Retrieves the status of your account's Amazon Web Services service access, and validates the service linked role required to access the multi-account search feature. Only the management account can invoke this API call. </p>"
162164
},
163165
"GetDefaultView":{
164166
"name":"GetDefaultView",
@@ -247,6 +249,25 @@
247249
],
248250
"documentation":"<p>Retrieves a list of a member's indexes in all Amazon Web Services Regions that are currently collecting resource information for Amazon Web Services Resource Explorer. Only the management account or a delegated administrator with service access enabled can invoke this API call. </p>"
249251
},
252+
"ListResources":{
253+
"name":"ListResources",
254+
"http":{
255+
"method":"POST",
256+
"requestUri":"/ListResources",
257+
"responseCode":200
258+
},
259+
"input":{"shape":"ListResourcesInput"},
260+
"output":{"shape":"ListResourcesOutput"},
261+
"errors":[
262+
{"shape":"ResourceNotFoundException"},
263+
{"shape":"InternalServerException"},
264+
{"shape":"ValidationException"},
265+
{"shape":"UnauthorizedException"},
266+
{"shape":"ThrottlingException"},
267+
{"shape":"AccessDeniedException"}
268+
],
269+
"documentation":"<p>Returns a list of resources and their details that match the specified criteria. This query must use a view. If you don’t explicitly specify a view, then Resource Explorer uses the default view for the Amazon Web Services Region in which you call this operation. </p>"
270+
},
250271
"ListSupportedResourceTypes":{
251272
"name":"ListSupportedResourceTypes",
252273
"http":{
@@ -903,6 +924,67 @@
903924
}
904925
}
905926
},
927+
"ListResourcesInput":{
928+
"type":"structure",
929+
"members":{
930+
"Filters":{"shape":"SearchFilter"},
931+
"MaxResults":{
932+
"shape":"ListResourcesInputMaxResultsInteger",
933+
"documentation":"<p>The maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the <code>NextToken</code> response element is present and has a value (is not null). Include that value as the <code>NextToken</code> request parameter in the next call to the operation to get the next part of the results.</p> <note> <p>An API operation can return fewer results than the maximum even when there are more results available. You should check <code>NextToken</code> after every operation to ensure that you receive all of the results.</p> </note>"
934+
},
935+
"NextToken":{
936+
"shape":"ListResourcesInputNextTokenString",
937+
"documentation":"<p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from. The pagination tokens expire after 24 hours.</p>"
938+
},
939+
"ViewArn":{
940+
"shape":"ListResourcesInputViewArnString",
941+
"documentation":"<p>Specifies the Amazon resource name (ARN) of the view to use for the query. If you don't specify a value for this parameter, then the operation automatically uses the default view for the Amazon Web Services Region in which you called this operation. If the Region either doesn't have a default view or if you don't have permission to use the default view, then the operation fails with a 401 Unauthorized exception.</p>"
942+
}
943+
}
944+
},
945+
"ListResourcesInputMaxResultsInteger":{
946+
"type":"integer",
947+
"box":true,
948+
"max":1000,
949+
"min":1
950+
},
951+
"ListResourcesInputNextTokenString":{
952+
"type":"string",
953+
"max":2048,
954+
"min":1
955+
},
956+
"ListResourcesInputViewArnString":{
957+
"type":"string",
958+
"max":1000,
959+
"min":0
960+
},
961+
"ListResourcesOutput":{
962+
"type":"structure",
963+
"members":{
964+
"NextToken":{
965+
"shape":"ListResourcesOutputNextTokenString",
966+
"documentation":"<p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the <code>NextToken</code> response element comes back as <code>null</code>. The pagination tokens expire after 24 hours.</p>"
967+
},
968+
"Resources":{
969+
"shape":"ResourceList",
970+
"documentation":"<p>The list of structures that describe the resources that match the query. </p>"
971+
},
972+
"ViewArn":{
973+
"shape":"ListResourcesOutputViewArnString",
974+
"documentation":"<p>The Amazon resource name (ARN) of the view that this operation used to perform the search. </p>"
975+
}
976+
}
977+
},
978+
"ListResourcesOutputNextTokenString":{
979+
"type":"string",
980+
"max":2048,
981+
"min":1
982+
},
983+
"ListResourcesOutputViewArnString":{
984+
"type":"string",
985+
"max":1011,
986+
"min":1
987+
},
906988
"ListSupportedResourceTypesInput":{
907989
"type":"structure",
908990
"members":{
@@ -1035,7 +1117,7 @@
10351117
},
10361118
"QueryString":{
10371119
"type":"string",
1038-
"max":1011,
1120+
"max":1280,
10391121
"min":0,
10401122
"sensitive":true
10411123
},
@@ -1072,7 +1154,7 @@
10721154
},
10731155
"Service":{
10741156
"shape":"String",
1075-
"documentation":"<p>The Amazon Web Service that owns the resource and is responsible for creating and updating it.</p>"
1157+
"documentation":"<p>The Amazon Web Servicesservice that owns the resource and is responsible for creating and updating it.</p>"
10761158
}
10771159
},
10781160
"documentation":"<p>A resource in Amazon Web Services that Amazon Web Services Resource Explorer has discovered, and for which it has stored information in the index of the Amazon Web Services Region that contains the resource.</p>"
@@ -1259,7 +1341,7 @@
12591341
},
12601342
"Service":{
12611343
"shape":"String",
1262-
"documentation":"<p>The Amazon Web Service that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type.</p>"
1344+
"documentation":"<p>The Amazon Web Servicesservice that is associated with the resource type. This is the primary service that lets you create and interact with resources of this type.</p>"
12631345
}
12641346
},
12651347
"documentation":"<p>A structure that describes a resource type supported by Amazon Web Services Resource Explorer.</p>"

0 commit comments

Comments
 (0)