Skip to content

Commit 143104f

Browse files
author
AWS
committed
AWS Resource Explorer Update: Add GetManagedView, ListManagedViews APIs.
1 parent ab2aacd commit 143104f

File tree

3 files changed

+168
-2
lines changed

3 files changed

+168
-2
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": "Add GetManagedView, ListManagedViews APIs."
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+
"ListManagedViews": {
16+
"input_token": "NextToken",
17+
"output_token": "NextToken",
18+
"limit_key": "MaxResults",
19+
"result_key": "ManagedViews"
20+
},
1521
"ListResources": {
1622
"input_token": "NextToken",
1723
"output_token": "NextToken",

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

Lines changed: 156 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,25 @@
196196
],
197197
"documentation":"<p>Retrieves details about the Amazon Web Services Resource Explorer index in the Amazon Web Services Region in which you invoked the operation.</p>"
198198
},
199+
"GetManagedView":{
200+
"name":"GetManagedView",
201+
"http":{
202+
"method":"POST",
203+
"requestUri":"/GetManagedView",
204+
"responseCode":200
205+
},
206+
"input":{"shape":"GetManagedViewInput"},
207+
"output":{"shape":"GetManagedViewOutput"},
208+
"errors":[
209+
{"shape":"ResourceNotFoundException"},
210+
{"shape":"InternalServerException"},
211+
{"shape":"ValidationException"},
212+
{"shape":"UnauthorizedException"},
213+
{"shape":"ThrottlingException"},
214+
{"shape":"AccessDeniedException"}
215+
],
216+
"documentation":"<p>Retrieves details of the specified <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/aws-managed-views.html\">Amazon Web Services-managed view</a>. </p>"
217+
},
199218
"GetView":{
200219
"name":"GetView",
201220
"http":{
@@ -249,6 +268,24 @@
249268
],
250269
"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>"
251270
},
271+
"ListManagedViews":{
272+
"name":"ListManagedViews",
273+
"http":{
274+
"method":"POST",
275+
"requestUri":"/ListManagedViews",
276+
"responseCode":200
277+
},
278+
"input":{"shape":"ListManagedViewsInput"},
279+
"output":{"shape":"ListManagedViewsOutput"},
280+
"errors":[
281+
{"shape":"InternalServerException"},
282+
{"shape":"ValidationException"},
283+
{"shape":"UnauthorizedException"},
284+
{"shape":"ThrottlingException"},
285+
{"shape":"AccessDeniedException"}
286+
],
287+
"documentation":"<p>Lists the Amazon resource names (ARNs) of the <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/aws-managed-views.html\">Amazon Web Services-managed views</a> available in the Amazon Web Services Region in which you call this operation. </p>"
288+
},
252289
"ListResources":{
253290
"name":"ListResources",
254291
"http":{
@@ -728,6 +765,30 @@
728765
}
729766
}
730767
},
768+
"GetManagedViewInput":{
769+
"type":"structure",
770+
"required":["ManagedViewArn"],
771+
"members":{
772+
"ManagedViewArn":{
773+
"shape":"GetManagedViewInputManagedViewArnString",
774+
"documentation":"<p>The Amazon resource name (ARN) of the managed view.</p>"
775+
}
776+
}
777+
},
778+
"GetManagedViewInputManagedViewArnString":{
779+
"type":"string",
780+
"max":1011,
781+
"min":1
782+
},
783+
"GetManagedViewOutput":{
784+
"type":"structure",
785+
"members":{
786+
"ManagedView":{
787+
"shape":"ManagedView",
788+
"documentation":"<p>Details about the specified managed view. </p>"
789+
}
790+
}
791+
},
731792
"GetViewInput":{
732793
"type":"structure",
733794
"required":["ViewArn"],
@@ -924,6 +985,52 @@
924985
}
925986
}
926987
},
988+
"ListManagedViewsInput":{
989+
"type":"structure",
990+
"members":{
991+
"MaxResults":{
992+
"shape":"ListManagedViewsInputMaxResultsInteger",
993+
"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>"
994+
},
995+
"NextToken":{
996+
"shape":"ListManagedViewsInputNextTokenString",
997+
"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>"
998+
},
999+
"ServicePrincipal":{
1000+
"shape":"ListManagedViewsInputServicePrincipalString",
1001+
"documentation":"<p>Specifies a service principal name. If specified, then the operation only returns the managed views that are managed by the input service. </p>"
1002+
}
1003+
}
1004+
},
1005+
"ListManagedViewsInputMaxResultsInteger":{
1006+
"type":"integer",
1007+
"box":true,
1008+
"max":50,
1009+
"min":1
1010+
},
1011+
"ListManagedViewsInputNextTokenString":{
1012+
"type":"string",
1013+
"max":2048,
1014+
"min":1
1015+
},
1016+
"ListManagedViewsInputServicePrincipalString":{
1017+
"type":"string",
1018+
"max":1024,
1019+
"min":1
1020+
},
1021+
"ListManagedViewsOutput":{
1022+
"type":"structure",
1023+
"members":{
1024+
"ManagedViews":{
1025+
"shape":"ManagedViewArnList",
1026+
"documentation":"<p>The list of managed views available in the Amazon Web Services Region in which you called this operation. </p>"
1027+
},
1028+
"NextToken":{
1029+
"shape":"String",
1030+
"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>"
1031+
}
1032+
}
1033+
},
9271034
"ListResourcesInput":{
9281035
"type":"structure",
9291036
"members":{
@@ -1074,6 +1181,53 @@
10741181
"type":"long",
10751182
"box":true
10761183
},
1184+
"ManagedView":{
1185+
"type":"structure",
1186+
"members":{
1187+
"Filters":{"shape":"SearchFilter"},
1188+
"IncludedProperties":{
1189+
"shape":"IncludedPropertyList",
1190+
"documentation":"<p>A structure that contains additional information about the managed view.</p>"
1191+
},
1192+
"LastUpdatedAt":{
1193+
"shape":"SyntheticTimestamp_date_time",
1194+
"documentation":"<p>The date and time when this managed view was last modified.</p>"
1195+
},
1196+
"ManagedViewArn":{
1197+
"shape":"String",
1198+
"documentation":"<p>The <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\">Amazon resource name (ARN)</a> of the managed view.</p>"
1199+
},
1200+
"ManagedViewName":{
1201+
"shape":"String",
1202+
"documentation":"<p>The name of the managed view. </p>"
1203+
},
1204+
"Owner":{
1205+
"shape":"String",
1206+
"documentation":"<p>The Amazon Web Services account that owns this managed view.</p>"
1207+
},
1208+
"ResourcePolicy":{
1209+
"shape":"String",
1210+
"documentation":"<p>The resource policy that defines access to the managed view. To learn more about this policy, review <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/aws-managed-views.html\">Managed views</a>.</p>"
1211+
},
1212+
"Scope":{
1213+
"shape":"String",
1214+
"documentation":"<p>An <a href=\"https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html\">Amazon resource name (ARN)</a> of an Amazon Web Services account or organization that specifies whether this managed view includes resources from only the specified Amazon Web Services account or all accounts in the specified organization. </p>"
1215+
},
1216+
"TrustedService":{
1217+
"shape":"String",
1218+
"documentation":"<p>The service principal of the Amazon Web Services service that created and manages the managed view. </p>"
1219+
},
1220+
"Version":{
1221+
"shape":"String",
1222+
"documentation":"<p>The version of the managed view. </p>"
1223+
}
1224+
},
1225+
"documentation":"<p>An Amazon Web Services-managed view is how other Amazon Web Services services can access resource information indexed by Resource Explorer for your Amazon Web Services account or organization with your consent. For more information, see <a href=\"https://docs.aws.amazon.com/resource-explorer/latest/userguide/aws-managed-views.html\">Managed views</a>. </p>"
1226+
},
1227+
"ManagedViewArnList":{
1228+
"type":"list",
1229+
"member":{"shape":"String"}
1230+
},
10771231
"MemberIndex":{
10781232
"type":"structure",
10791233
"members":{
@@ -1154,7 +1308,7 @@
11541308
},
11551309
"Service":{
11561310
"shape":"String",
1157-
"documentation":"<p>The Amazon Web Servicesservice that owns the resource and is responsible for creating and updating it.</p>"
1311+
"documentation":"<p>The Amazon Web Services service that owns the resource and is responsible for creating and updating it.</p>"
11581312
}
11591313
},
11601314
"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>"
@@ -1341,7 +1495,7 @@
13411495
},
13421496
"Service":{
13431497
"shape":"String",
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>"
1498+
"documentation":"<p>The Amazon Web Services 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>"
13451499
}
13461500
},
13471501
"documentation":"<p>A structure that describes a resource type supported by Amazon Web Services Resource Explorer.</p>"

0 commit comments

Comments
 (0)