Skip to main content

ebs_volume_recommendations

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

Overview

Nameebs_volume_recommendations
TypeResource
Idaws.compute_optimizer.ebs_volume_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
errorsarrayAn array of objects that describe errors of the request. For example, an error is returned if you request recommendations for an unsupported volume.
next_tokenstringThe token to use to advance to the next page of volume recommendations. This value is null when there are no more pages of volume recommendations to return.
volume_recommendationsarrayAn array of objects that describe volume recommendations.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ebs_volume_recommendationsselectregionReturns Amazon Elastic Block Store (Amazon EBS) volume recommendations. Compute Optimizer generates recommendations for Amazon EBS volumes that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.
export_ebs_volume_recommendationsexecregion, s3DestinationConfigExports optimization recommendations for Amazon EBS volumes. Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide. You can have only one Amazon EBS volume export job in progress per Amazon Web Services Region.

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 Amazon Elastic Block Store (Amazon EBS) volume recommendations. Compute Optimizer generates recommendations for Amazon EBS volumes that meet a specific set of requirements. For more information, see the Supported resources and requirements in the Compute Optimizer User Guide.

SELECT
errors,
next_token,
volume_recommendations
FROM aws.compute_optimizer.ebs_volume_recommendations
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Exports optimization recommendations for Amazon EBS volumes. Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (JSON) (.json) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide. You can have only one Amazon EBS volume export job in progress per Amazon Web Services Region.

EXEC aws.compute_optimizer.ebs_volume_recommendations.export_ebs_volume_recommendations
@region='{{ region }}' --required
@@json=
'{
"accountIds": "{{ accountIds }}",
"filters": "{{ filters }}",
"fieldsToExport": "{{ fieldsToExport }}",
"s3DestinationConfig": "{{ s3DestinationConfig }}",
"fileFormat": "{{ fileFormat }}",
"includeMemberAccounts": {{ includeMemberAccounts }}
}'
;