Values.GetResourcesV2RequestSourceReturns a list of resources. You can use the Scopes parameter to define the data boundary for the query. Currently, Scopes supports AwsOrganizations, which lets you retrieve resources from your entire organization or from specific organizational units. Only the delegated administrator account can use Scopes. You can use the Filters parameter to refine results based on resource attributes. You can use Scopes and Filters independently or together. When both are provided, Scopes narrows the data set first, and then Filters refines results within that scoped data set.
type nonrec t = {filters : ResourcesFilters.t option;Filters resources based on a set of criteria.
*)scopes : ResourceScopes.t option;Limits the results to resources from specific organizational units or from the delegated administrator's organization. Only the delegated administrator account can use this parameter. Other accounts receive an AccessDeniedException. This parameter is optional. If you omit it, the delegated administrator sees resources from all accounts across the entire organization. Other accounts see only their own resources. You can specify up to 10 entries in Scopes.AwsOrganizations. If multiple entries are specified, the entries are combined using OR logic.
*)sortCriteria : SortCriteria.t option;The resource attributes used to sort the list of returned resources.
*)nextToken : NextToken.t option;The token required for pagination. On your first call, set the value of this parameter to NULL. For subsequent calls, to continue listing data, set the value of this parameter to the value returned in the previous response.
*)maxResults : MaxResults.t option;The maximum number of results to return.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Integer of MaxResults.t
| `List of
[> `Structure of
(string * [> `Enum of string | `String of NonEmptyString.t ])
list ]
list
| `String of NextToken.t
| `Structure of (string * Awso.Botodata.value) list ])
list ]