Skip to main content

service_indexes

Creates, updates, deletes, gets or lists a service_indexes resource.

Overview

Nameservice_indexes
TypeResource
Idaws.resource_explorer_2.service_indexes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the Resource Explorer index in the current Region.
typestringThe 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:

NameAccessible byRequired ParamsOptional ParamsDescription
get_service_indexselectregionRetrieves 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_indexesexecregionLists 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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

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 }}"
}'
;