resources
Creates, updates, deletes, gets or lists a resources resource.
Overview
| Name | resources |
| Type | Resource |
| Id | aws.resource_explorer_2.resources |
Fields
The following fields are returned by SELECT queries:
- list_resources
| Name | Datatype | Description |
|---|---|---|
arn | string | The Amazon resource name (ARN) of the resource. |
cfn_resource_type | string | The CloudFormation resource type identifier for the resource, such as AWS::EC2::Instance or AWS::S3::Bucket. |
last_reported_at | string (date-time) | The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource. |
owning_account_id | string | The Amazon Web Services account that owns the resource. |
properties | array | A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services. |
region | string | The Amazon Web Services Region in which the resource was created and exists. |
resource_type | string | The type of the resource. |
service | string | The Amazon Web Services service that owns the resource and is responsible for creating and updating it. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_resources | select | region | 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. |
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
- list_resources
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.
SELECT
arn,
cfn_resource_type,
last_reported_at,
owning_account_id,
properties,
region,
resource_type,
service
FROM aws.resource_explorer_2.resources
WHERE region = '{{ region }}' -- required
;