@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSCostOptimizationHub extends Object implements AWSCostOptimizationHub
AWSCostOptimizationHub
. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetPreferencesResult |
getPreferences(GetPreferencesRequest request)
Returns a set of preferences for an account in order to add account-specific preferences into the service.
|
GetRecommendationResult |
getRecommendation(GetRecommendationRequest request)
Returns both the current and recommended resource configuration and the estimated cost impact for a
recommendation.
|
ListEnrollmentStatusesResult |
listEnrollmentStatuses(ListEnrollmentStatusesRequest request)
Retrieves the enrollment status for an account.
|
ListRecommendationsResult |
listRecommendations(ListRecommendationsRequest request)
Returns a list of recommendations.
|
ListRecommendationSummariesResult |
listRecommendationSummaries(ListRecommendationSummariesRequest request)
Returns a concise representation of savings estimates for resources.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
UpdateEnrollmentStatusResult |
updateEnrollmentStatus(UpdateEnrollmentStatusRequest request)
Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization Hub service.
|
UpdatePreferencesResult |
updatePreferences(UpdatePreferencesRequest request)
Updates a set of preferences for an account in order to add account-specific preferences into the service.
|
public GetPreferencesResult getPreferences(GetPreferencesRequest request)
AWSCostOptimizationHub
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.
getPreferences
in interface AWSCostOptimizationHub
public GetRecommendationResult getRecommendation(GetRecommendationRequest request)
AWSCostOptimizationHub
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.
getRecommendation
in interface AWSCostOptimizationHub
public ListEnrollmentStatusesResult listEnrollmentStatuses(ListEnrollmentStatusesRequest request)
AWSCostOptimizationHub
Retrieves the enrollment status for an account. It can also return the list of accounts that are enrolled under the organization.
listEnrollmentStatuses
in interface AWSCostOptimizationHub
public ListRecommendationSummariesResult listRecommendationSummaries(ListRecommendationSummariesRequest request)
AWSCostOptimizationHub
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
.
listRecommendationSummaries
in interface AWSCostOptimizationHub
public ListRecommendationsResult listRecommendations(ListRecommendationsRequest request)
AWSCostOptimizationHub
Returns a list of recommendations.
listRecommendations
in interface AWSCostOptimizationHub
public UpdateEnrollmentStatusResult updateEnrollmentStatus(UpdateEnrollmentStatusRequest request)
AWSCostOptimizationHub
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.
updateEnrollmentStatus
in interface AWSCostOptimizationHub
public UpdatePreferencesResult updatePreferences(UpdatePreferencesRequest request)
AWSCostOptimizationHub
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.
updatePreferences
in interface AWSCostOptimizationHub
public void shutdown()
AWSCostOptimizationHub
shutdown
in interface AWSCostOptimizationHub
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AWSCostOptimizationHub
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata
in interface AWSCostOptimizationHub
request
- The originally executed request.