View Source AWS.CostOptimizationHub (aws-elixir v1.0.0)

You can use the Cost Optimization Hub API to programmatically identify, filter, aggregate, and quantify savings for your cost optimization recommendations across multiple Amazon Web Services Regions and Amazon Web Services accounts in your organization.

The Cost Optimization Hub API provides the following endpoint:

* https://cost-optimization-hub.us-east-1.amazonaws.com

Summary

Functions

Returns a set of preferences for an account in order to add account-specific preferences into the service.

Returns both the current and recommended resource configuration and the estimated cost impact for a recommendation.

Retrieves the enrollment status for an account.

Returns a concise representation of savings estimates for resources.

Returns a list of recommendations.

Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization Hub service.

Updates a set of preferences for an account in order to add account-specific preferences into the service.

Functions

Link to this function

get_preferences(client, input, options \\ [])

View Source

Returns a set of preferences for an account in order to add account-specific preferences into the service.

These preferences impact how the savings associated with recommendations are presented—estimated savings after discounts or estimated savings before discounts, for example.

Link to this function

get_recommendation(client, input, options \\ [])

View Source

Returns both the current and recommended resource configuration and the estimated cost impact for a recommendation.

The recommendationId is only valid for up to a maximum of 24 hours as recommendations are refreshed daily. To retrieve the recommendationId, use the ListRecommendations API.

Link to this function

list_enrollment_statuses(client, input, options \\ [])

View Source

Retrieves the enrollment status for an account.

It can also return the list of accounts that are enrolled under the organization.

Link to this function

list_recommendation_summaries(client, input, options \\ [])

View Source

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.

Link to this function

list_recommendations(client, input, options \\ [])

View Source

Returns a list of recommendations.

Link to this function

update_enrollment_status(client, input, options \\ [])

View Source

Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization Hub service.

If the account is a management account of an organization, this action can also be used to enroll member accounts of the organization.

You must have the appropriate permissions to opt in to Cost Optimization Hub and to view its recommendations. When you opt in, Cost Optimization Hub automatically creates a service-linked role in your account to access its data.

Link to this function

update_preferences(client, input, options \\ [])

View Source

Updates a set of preferences for an account in order to add account-specific preferences into the service.

These preferences impact how the savings associated with recommendations are presented.