Skip to content

aws.cost_optimization_hub.list_recommendation_summaries

Example SQL Queries

SELECT * FROM
aws.cost_optimization_hub.list_recommendation_summaries
WHERE
"group_by" = 'VALUE';

Description

Returns a concise representation of savings estimates for resources. Also returns de-duped savings across different types of recommendations.

The following filters are not supported for this API: recommendationIds, resourceArns, and resourceIds.

Table Definition

Column NameColumn Data Type
group_by Required Input Column

The dimension used to group the recommendations by.

VARCHAR
filter Input Column

Describes a filter that returns a more specific list of recommendations. Filters recommendations by different dimensions.

STRUCT(
"restart_needed" BOOLEAN,
"rollback_possible" BOOLEAN,
"implementation_efforts" VARCHAR[],
"account_ids" VARCHAR[],
"regions" VARCHAR[],
"resource_types" VARCHAR[],
"action_types" VARCHAR[],
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"resource_ids" VARCHAR[],
"resource_arns" VARCHAR[],
"recommendation_ids" VARCHAR[]
)
Show child fields
filter.account_ids[]
filter.action_types[]
filter.implementation_efforts[]
filter.recommendation_ids[]
filter.regions[]
filter.resource_arns[]
filter.resource_ids[]
filter.resource_types[]
filter.restart_needed

Whether or not implementing the recommendation requires a restart.

filter.rollback_possible

Whether or not implementing the recommendation can be rolled back.

filter.tags[]
Show child fields
filter.tags[].key

The key that's associated with the tag.

filter.tags[].value

The value that's associated with the tag.

_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
_input_metrics Input Column
VARCHAR[]
Show child fields
_input_metrics[]
currency_code

The currency code used for the recommendation.

VARCHAR
estimated_total_deduped_savings

The total overall savings for the aggregated view.

DOUBLE
items

A list of all savings recommendations.

STRUCT(
"group" VARCHAR,
"estimated_monthly_savings" DOUBLE,
"recommendation_count" BIGINT
)[]
Show child fields
items[]
Show child fields
items[].estimated_monthly_savings

The estimated total savings resulting from modifications, on a monthly basis.

items[].group

The grouping of recommendations.

items[].recommendation_count

The total number of instance recommendations.

metrics

The results or descriptions for the additional metrics, based on whether the metrics were or were not requested.

STRUCT(
"savings_percentage" VARCHAR
)
Show child fields
metrics.savings_percentage

The savings percentage based on your Amazon Web Services spend over the past 30 days.

Savings percentage is only supported when filtering by Region, account ID, or tags.