AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ReservationPurchaseRecommendationDetail

import "github.com/aws/aws-sdk-go/service/costexplorer"

type ReservationPurchaseRecommendationDetail struct { AccountId *string `type:"string"` AverageNormalizedUnitsUsedPerHour *string `type:"string"` AverageNumberOfInstancesUsedPerHour *string `type:"string"` AverageUtilization *string `type:"string"` CurrencyCode *string `type:"string"` EstimatedBreakEvenInMonths *string `type:"string"` EstimatedMonthlyOnDemandCost *string `type:"string"` EstimatedMonthlySavingsAmount *string `type:"string"` EstimatedMonthlySavingsPercentage *string `type:"string"` EstimatedReservationCostForLookbackPeriod *string `type:"string"` InstanceDetails *InstanceDetails `type:"structure"` MaximumNormalizedUnitsUsedPerHour *string `type:"string"` MaximumNumberOfInstancesUsedPerHour *string `type:"string"` MinimumNormalizedUnitsUsedPerHour *string `type:"string"` MinimumNumberOfInstancesUsedPerHour *string `type:"string"` RecommendedNormalizedUnitsToPurchase *string `type:"string"` RecommendedNumberOfInstancesToPurchase *string `type:"string"` RecurringStandardMonthlyCost *string `type:"string"` UpfrontCost *string `type:"string"` }

Details about your recommended reservation purchase.

AccountId

Type: *string

The account that this RI recommendation is for.

AverageNormalizedUnitsUsedPerHour

Type: *string

The average number of normalized units that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.

AverageNumberOfInstancesUsedPerHour

Type: *string

The average number of instances that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.

AverageUtilization

Type: *string

The average utilization of your instances. AWS uses this to calculate your recommended reservation purchases.

CurrencyCode

Type: *string

The currency code that AWS used to calculate the costs for this instance.

EstimatedBreakEvenInMonths

Type: *string

How long AWS estimates that it takes for this instance to start saving you money, in months.

EstimatedMonthlyOnDemandCost

Type: *string

How much AWS estimates that you spend on On-Demand Instances in a month.

EstimatedMonthlySavingsAmount

Type: *string

How much AWS estimates that this specific recommendation could save you in a month.

EstimatedMonthlySavingsPercentage

Type: *string

How much AWS estimates that this specific recommendation could save you in a month, as a percentage of your overall costs.

EstimatedReservationCostForLookbackPeriod

Type: *string

How much AWS estimates that you would have spent for all usage during the specified historical period if you had had a reservation.

InstanceDetails

Details about the instances that AWS recommends that you purchase.

MaximumNormalizedUnitsUsedPerHour

Type: *string

The maximum number of normalized units that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.

MaximumNumberOfInstancesUsedPerHour

Type: *string

The maximum number of instances that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.

MinimumNormalizedUnitsUsedPerHour

Type: *string

The minimum number of normalized units that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.

MinimumNumberOfInstancesUsedPerHour

Type: *string

The minimum number of instances that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.

RecommendedNormalizedUnitsToPurchase

Type: *string

The number of normalized units that AWS recommends that you purchase.

RecommendedNumberOfInstancesToPurchase

Type: *string

The number of instances that AWS recommends that you purchase.

RecurringStandardMonthlyCost

Type: *string

How much purchasing this instance costs you on a monthly basis.

UpfrontCost

Type: *string

How much purchasing this instance costs you upfront.

Method

GoString

func (s ReservationPurchaseRecommendationDetail) GoString() string

GoString returns the string representation

SetAccountId

func (s *ReservationPurchaseRecommendationDetail) SetAccountId(v string) *ReservationPurchaseRecommendationDetail

SetAccountId sets the AccountId field's value.

SetAverageNormalizedUnitsUsedPerHour

func (s *ReservationPurchaseRecommendationDetail) SetAverageNormalizedUnitsUsedPerHour(v string) *ReservationPurchaseRecommendationDetail

SetAverageNormalizedUnitsUsedPerHour sets the AverageNormalizedUnitsUsedPerHour field's value.

SetAverageNumberOfInstancesUsedPerHour

func (s *ReservationPurchaseRecommendationDetail) SetAverageNumberOfInstancesUsedPerHour(v string) *ReservationPurchaseRecommendationDetail

SetAverageNumberOfInstancesUsedPerHour sets the AverageNumberOfInstancesUsedPerHour field's value.

SetAverageUtilization

func (s *ReservationPurchaseRecommendationDetail) SetAverageUtilization(v string) *ReservationPurchaseRecommendationDetail

SetAverageUtilization sets the AverageUtilization field's value.

SetCurrencyCode

func (s *ReservationPurchaseRecommendationDetail) SetCurrencyCode(v string) *ReservationPurchaseRecommendationDetail

SetCurrencyCode sets the CurrencyCode field's value.

SetEstimatedBreakEvenInMonths

func (s *ReservationPurchaseRecommendationDetail) SetEstimatedBreakEvenInMonths(v string) *ReservationPurchaseRecommendationDetail

SetEstimatedBreakEvenInMonths sets the EstimatedBreakEvenInMonths field's value.

SetEstimatedMonthlyOnDemandCost

func (s *ReservationPurchaseRecommendationDetail) SetEstimatedMonthlyOnDemandCost(v string) *ReservationPurchaseRecommendationDetail

SetEstimatedMonthlyOnDemandCost sets the EstimatedMonthlyOnDemandCost field's value.

SetEstimatedMonthlySavingsAmount

func (s *ReservationPurchaseRecommendationDetail) SetEstimatedMonthlySavingsAmount(v string) *ReservationPurchaseRecommendationDetail

SetEstimatedMonthlySavingsAmount sets the EstimatedMonthlySavingsAmount field's value.

SetEstimatedMonthlySavingsPercentage

func (s *ReservationPurchaseRecommendationDetail) SetEstimatedMonthlySavingsPercentage(v string) *ReservationPurchaseRecommendationDetail

SetEstimatedMonthlySavingsPercentage sets the EstimatedMonthlySavingsPercentage field's value.

SetEstimatedReservationCostForLookbackPeriod

func (s *ReservationPurchaseRecommendationDetail) SetEstimatedReservationCostForLookbackPeriod(v string) *ReservationPurchaseRecommendationDetail

SetEstimatedReservationCostForLookbackPeriod sets the EstimatedReservationCostForLookbackPeriod field's value.

SetInstanceDetails

func (s *ReservationPurchaseRecommendationDetail) SetInstanceDetails(v *InstanceDetails) *ReservationPurchaseRecommendationDetail

SetInstanceDetails sets the InstanceDetails field's value.

SetMaximumNormalizedUnitsUsedPerHour

func (s *ReservationPurchaseRecommendationDetail) SetMaximumNormalizedUnitsUsedPerHour(v string) *ReservationPurchaseRecommendationDetail

SetMaximumNormalizedUnitsUsedPerHour sets the MaximumNormalizedUnitsUsedPerHour field's value.

SetMaximumNumberOfInstancesUsedPerHour

func (s *ReservationPurchaseRecommendationDetail) SetMaximumNumberOfInstancesUsedPerHour(v string) *ReservationPurchaseRecommendationDetail

SetMaximumNumberOfInstancesUsedPerHour sets the MaximumNumberOfInstancesUsedPerHour field's value.

SetMinimumNormalizedUnitsUsedPerHour

func (s *ReservationPurchaseRecommendationDetail) SetMinimumNormalizedUnitsUsedPerHour(v string) *ReservationPurchaseRecommendationDetail

SetMinimumNormalizedUnitsUsedPerHour sets the MinimumNormalizedUnitsUsedPerHour field's value.

SetMinimumNumberOfInstancesUsedPerHour

func (s *ReservationPurchaseRecommendationDetail) SetMinimumNumberOfInstancesUsedPerHour(v string) *ReservationPurchaseRecommendationDetail

SetMinimumNumberOfInstancesUsedPerHour sets the MinimumNumberOfInstancesUsedPerHour field's value.

SetRecommendedNormalizedUnitsToPurchase

func (s *ReservationPurchaseRecommendationDetail) SetRecommendedNormalizedUnitsToPurchase(v string) *ReservationPurchaseRecommendationDetail

SetRecommendedNormalizedUnitsToPurchase sets the RecommendedNormalizedUnitsToPurchase field's value.

SetRecommendedNumberOfInstancesToPurchase

func (s *ReservationPurchaseRecommendationDetail) SetRecommendedNumberOfInstancesToPurchase(v string) *ReservationPurchaseRecommendationDetail

SetRecommendedNumberOfInstancesToPurchase sets the RecommendedNumberOfInstancesToPurchase field's value.

SetRecurringStandardMonthlyCost

func (s *ReservationPurchaseRecommendationDetail) SetRecurringStandardMonthlyCost(v string) *ReservationPurchaseRecommendationDetail

SetRecurringStandardMonthlyCost sets the RecurringStandardMonthlyCost field's value.

SetUpfrontCost

func (s *ReservationPurchaseRecommendationDetail) SetUpfrontCost(v string) *ReservationPurchaseRecommendationDetail

SetUpfrontCost sets the UpfrontCost field's value.

String

func (s ReservationPurchaseRecommendationDetail) String() string

String returns the string representation

On this page: