Skip to main content

automation_rule_previews

Creates, updates, deletes, gets or lists an automation_rule_previews resource.

Overview

Nameautomation_rule_previews
TypeResource
Idaws.compute_optimizer_automation.automation_rule_previews

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Amazon Web Services account ID associated with the resource. (pattern: <code>[0-9]{12}</code>)
current_resource_detailsobjectDetailed configuration information for a specific Amazon Web Services resource, with type-specific details.
current_resource_summarystringA summary of the resource's current configuration.
estimated_monthly_savingsobjectContains information about estimated monthly cost savings.
look_back_period_in_daysintegerThe number of days of historical data used to analyze the resource.
recommended_action_idstringThe ID of the recommended action being previewed. (pattern: <code>[0-9A-Za-z]{16}</code>)
recommended_action_typestringRecommended action type enumeration (SnapshotAndDeleteUnattachedEbsVolume, UpgradeEbsVolumeType)
recommended_resource_detailsobjectDetailed configuration information for a specific Amazon Web Services resource, with type-specific details.
recommended_resource_summarystringA summary of the resource's recommended configuration.
regionstringThe Amazon Web Services Region where the resource is located.
resource_arnstringThe Amazon Resource Name (ARN) of the resource affected by the recommended action. (pattern: <code>arn:aws[a-z0-9-]:[a-z0-9-]+:[a-z0-9-]:[0-9]{0,12}:[a-zA-Z0-9/_.-]+</code>)
resource_idstringThe ID of the resource affected by the recommended action. (pattern: <code>[a-zA-Z0-9_.-]+</code>)
resource_tagsarrayThe tags associated with the resource.
resource_typestringThe type of resource being evaluated. (EbsVolume)
restart_neededbooleanIndicates whether implementing the recommended action requires a resource restart.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_automation_rule_previewselectregionReturns a preview of the recommended actions that match your Automation rule's configuration and criteria.

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

Returns a preview of the recommended actions that match your Automation rule's configuration and criteria.

SELECT
account_id,
current_resource_details,
current_resource_summary,
estimated_monthly_savings,
look_back_period_in_days,
recommended_action_id,
recommended_action_type,
recommended_resource_details,
recommended_resource_summary,
region,
resource_arn,
resource_id,
resource_tags,
resource_type,
restart_needed
FROM aws.compute_optimizer_automation.automation_rule_previews
WHERE region = '{{ region }}' -- required
;