You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CostExplorer::Types::GetReservationPurchaseRecommendationRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing GetReservationPurchaseRecommendationRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  account_id: "GenericString",
  service: "GenericString", # required
  account_scope: "PAYER", # accepts PAYER, LINKED
  lookback_period_in_days: "SEVEN_DAYS", # accepts SEVEN_DAYS, THIRTY_DAYS, SIXTY_DAYS
  term_in_years: "ONE_YEAR", # accepts ONE_YEAR, THREE_YEARS
  payment_option: "NO_UPFRONT", # accepts NO_UPFRONT, PARTIAL_UPFRONT, ALL_UPFRONT, LIGHT_UTILIZATION, MEDIUM_UTILIZATION, HEAVY_UTILIZATION
  service_specification: {
    ec2_specification: {
      offering_class: "STANDARD", # accepts STANDARD, CONVERTIBLE
    },
  },
  page_size: 1,
  next_page_token: "NextPageToken",
}

Instance Attribute Summary collapse

Instance Attribute Details

#account_idString

The account ID that is associated with the recommendation.

Returns:

  • (String)

    The account ID that is associated with the recommendation.

#account_scopeString

The account scope that you want recommendations for. PAYER means that AWS includes the master account and any member accounts when it calculates its recommendations. LINKED means that AWS includes only member accounts when it calculates its recommendations.

Valid values are PAYER and LINKED.

Possible values:

  • PAYER
  • LINKED

Returns:

  • (String)

    The account scope that you want recommendations for.

#lookback_period_in_daysString

The number of previous days that you want AWS to consider when it calculates your recommendations.

Possible values:

  • SEVEN_DAYS
  • THIRTY_DAYS
  • SIXTY_DAYS

Returns:

  • (String)

    The number of previous days that you want AWS to consider when it calculates your recommendations.

#next_page_tokenString

The pagination token that indicates the next set of results that you want to retrieve.

Returns:

  • (String)

    The pagination token that indicates the next set of results that you want to retrieve.

#page_sizeInteger

The number of recommendations that you want returned in a single response object.

Returns:

  • (Integer)

    The number of recommendations that you want returned in a single response object.

#payment_optionString

The reservation purchase option that you want recommendations for.

Possible values:

  • NO_UPFRONT
  • PARTIAL_UPFRONT
  • ALL_UPFRONT
  • LIGHT_UTILIZATION
  • MEDIUM_UTILIZATION
  • HEAVY_UTILIZATION

Returns:

  • (String)

    The reservation purchase option that you want recommendations for.

#serviceString

The specific service that you want recommendations for.

Returns:

  • (String)

    The specific service that you want recommendations for.

#service_specificationTypes::ServiceSpecification

The hardware specifications for the service instances that you want recommendations for, such as standard or convertible EC2 instances.

Returns:

  • (Types::ServiceSpecification)

    The hardware specifications for the service instances that you want recommendations for, such as standard or convertible EC2 instances.

#term_in_yearsString

The reservation term that you want recommendations for.

Possible values:

  • ONE_YEAR
  • THREE_YEARS

Returns:

  • (String)

    The reservation term that you want recommendations for.