service_indexes
Creates, updates, deletes, gets or lists a service_indexes resource.
Overview
| Name | service_indexes |
| Type | Resource |
| Id | aws.resource_explorer_2.service_indexes |
Fields
The following fields are returned by SELECT queries:
- get_service_index
| Name | Datatype | Description |
|---|---|---|
arn | string | The Amazon Resource Name (ARN) of the Resource Explorer index in the current Region. |
type | string | The type of the index. Valid values are LOCAL (contains resources from the current Region only) or AGGREGATOR (contains replicated resource information from all Regions). (LOCAL, AGGREGATOR) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_service_index | select | region | Retrieves information about the Resource Explorer index in the current Amazon Web Services Region. This operation returns the ARN and type of the index if one exists. | |
list_service_indexes | exec | region | Lists all Resource Explorer indexes across the specified Amazon Web Services Regions. This operation returns information about indexes including their ARNs, types, and Regions. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_service_index
Retrieves information about the Resource Explorer index in the current Amazon Web Services Region. This operation returns the ARN and type of the index if one exists.
SELECT
arn,
type
FROM aws.resource_explorer_2.service_indexes
WHERE region = '{{ region }}' -- required
;
Lifecycle Methods
- list_service_indexes
Lists all Resource Explorer indexes across the specified Amazon Web Services Regions. This operation returns information about indexes including their ARNs, types, and Regions.
EXEC aws.resource_explorer_2.service_indexes.list_service_indexes
@region='{{ region }}' --required
@@json=
'{
"Regions": "{{ Regions }}",
"MaxResults": {{ MaxResults }},
"NextToken": "{{ NextToken }}"
}'
;