costoptimizationhub

package
v0.0.0-...-eeb2ccb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2024 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package costoptimizationhub provides the client and types for making API requests to Cost Optimization Hub.

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:

See https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26 for more information on this service.

See costoptimizationhub package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/costoptimizationhub/

Using the Client

To contact Cost Optimization Hub with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Cost Optimization Hub client CostOptimizationHub for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/costoptimizationhub/#New

Index

Constants

View Source
const (
	// ActionTypeRightsize is a ActionType enum value
	ActionTypeRightsize = "Rightsize"

	// ActionTypeStop is a ActionType enum value
	ActionTypeStop = "Stop"

	// ActionTypeUpgrade is a ActionType enum value
	ActionTypeUpgrade = "Upgrade"

	// ActionTypePurchaseSavingsPlans is a ActionType enum value
	ActionTypePurchaseSavingsPlans = "PurchaseSavingsPlans"

	// ActionTypePurchaseReservedInstances is a ActionType enum value
	ActionTypePurchaseReservedInstances = "PurchaseReservedInstances"

	// ActionTypeMigrateToGraviton is a ActionType enum value
	ActionTypeMigrateToGraviton = "MigrateToGraviton"
)
View Source
const (
	// EnrollmentStatusActive is a EnrollmentStatus enum value
	EnrollmentStatusActive = "Active"

	// EnrollmentStatusInactive is a EnrollmentStatus enum value
	EnrollmentStatusInactive = "Inactive"
)
View Source
const (
	// ImplementationEffortVeryLow is a ImplementationEffort enum value
	ImplementationEffortVeryLow = "VeryLow"

	// ImplementationEffortLow is a ImplementationEffort enum value
	ImplementationEffortLow = "Low"

	// ImplementationEffortMedium is a ImplementationEffort enum value
	ImplementationEffortMedium = "Medium"

	// ImplementationEffortHigh is a ImplementationEffort enum value
	ImplementationEffortHigh = "High"

	// ImplementationEffortVeryHigh is a ImplementationEffort enum value
	ImplementationEffortVeryHigh = "VeryHigh"
)
View Source
const (
	// MemberAccountDiscountVisibilityAll is a MemberAccountDiscountVisibility enum value
	MemberAccountDiscountVisibilityAll = "All"

	// MemberAccountDiscountVisibilityNone is a MemberAccountDiscountVisibility enum value
	MemberAccountDiscountVisibilityNone = "None"
)
View Source
const (
	// OrderAsc is a Order enum value
	OrderAsc = "Asc"

	// OrderDesc is a Order enum value
	OrderDesc = "Desc"
)
View Source
const (
	// ResourceTypeEc2instance is a ResourceType enum value
	ResourceTypeEc2instance = "Ec2Instance"

	// ResourceTypeLambdaFunction is a ResourceType enum value
	ResourceTypeLambdaFunction = "LambdaFunction"

	// ResourceTypeEbsVolume is a ResourceType enum value
	ResourceTypeEbsVolume = "EbsVolume"

	// ResourceTypeEcsService is a ResourceType enum value
	ResourceTypeEcsService = "EcsService"

	// ResourceTypeEc2autoScalingGroup is a ResourceType enum value
	ResourceTypeEc2autoScalingGroup = "Ec2AutoScalingGroup"

	// ResourceTypeEc2instanceSavingsPlans is a ResourceType enum value
	ResourceTypeEc2instanceSavingsPlans = "Ec2InstanceSavingsPlans"

	// ResourceTypeComputeSavingsPlans is a ResourceType enum value
	ResourceTypeComputeSavingsPlans = "ComputeSavingsPlans"

	// ResourceTypeSageMakerSavingsPlans is a ResourceType enum value
	ResourceTypeSageMakerSavingsPlans = "SageMakerSavingsPlans"

	// ResourceTypeEc2reservedInstances is a ResourceType enum value
	ResourceTypeEc2reservedInstances = "Ec2ReservedInstances"

	// ResourceTypeRdsReservedInstances is a ResourceType enum value
	ResourceTypeRdsReservedInstances = "RdsReservedInstances"

	// ResourceTypeOpenSearchReservedInstances is a ResourceType enum value
	ResourceTypeOpenSearchReservedInstances = "OpenSearchReservedInstances"

	// ResourceTypeRedshiftReservedInstances is a ResourceType enum value
	ResourceTypeRedshiftReservedInstances = "RedshiftReservedInstances"

	// ResourceTypeElastiCacheReservedInstances is a ResourceType enum value
	ResourceTypeElastiCacheReservedInstances = "ElastiCacheReservedInstances"
)
View Source
const (
	// SavingsEstimationModeBeforeDiscounts is a SavingsEstimationMode enum value
	SavingsEstimationModeBeforeDiscounts = "BeforeDiscounts"

	// SavingsEstimationModeAfterDiscounts is a SavingsEstimationMode enum value
	SavingsEstimationModeAfterDiscounts = "AfterDiscounts"
)
View Source
const (
	// SourceComputeOptimizer is a Source enum value
	SourceComputeOptimizer = "ComputeOptimizer"

	// SourceCostExplorer is a Source enum value
	SourceCostExplorer = "CostExplorer"
)
View Source
const (
	// ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value
	ValidationExceptionReasonFieldValidationFailed = "FieldValidationFailed"

	// ValidationExceptionReasonOther is a ValidationExceptionReason enum value
	ValidationExceptionReasonOther = "Other"
)
View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// You are not authorized to use this operation with the given parameters.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// An error on the server occurred during the processing of your request. Try
	// again later.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// The specified Amazon Resource Name (ARN) in the request doesn't exist.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// The request was denied due to request throttling.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// The input fails to satisfy the constraints specified by an Amazon Web Services
	// service.
	ErrCodeValidationException = "ValidationException"
)
View Source
const (
	ServiceName = "Cost Optimization Hub" // Name of service.
	EndpointsID = "cost-optimization-hub" // ID to lookup a service endpoint with.
	ServiceID   = "Cost Optimization Hub" // ServiceID is a unique identifier of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

func ActionType_Values

func ActionType_Values() []string

ActionType_Values returns all elements of the ActionType enum

func EnrollmentStatus_Values

func EnrollmentStatus_Values() []string

EnrollmentStatus_Values returns all elements of the EnrollmentStatus enum

func ImplementationEffort_Values

func ImplementationEffort_Values() []string

ImplementationEffort_Values returns all elements of the ImplementationEffort enum

func MemberAccountDiscountVisibility_Values

func MemberAccountDiscountVisibility_Values() []string

MemberAccountDiscountVisibility_Values returns all elements of the MemberAccountDiscountVisibility enum

func Order_Values

func Order_Values() []string

Order_Values returns all elements of the Order enum

func ResourceType_Values

func ResourceType_Values() []string

ResourceType_Values returns all elements of the ResourceType enum

func SavingsEstimationMode_Values

func SavingsEstimationMode_Values() []string

SavingsEstimationMode_Values returns all elements of the SavingsEstimationMode enum

func Source_Values

func Source_Values() []string

Source_Values returns all elements of the Source enum

func ValidationExceptionReason_Values

func ValidationExceptionReason_Values() []string

ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum

Types

type AccessDeniedException

type AccessDeniedException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

You are not authorized to use this operation with the given parameters.

func (*AccessDeniedException) Code

func (s *AccessDeniedException) Code() string

Code returns the exception type name.

func (*AccessDeniedException) Error

func (s *AccessDeniedException) Error() string

func (AccessDeniedException) GoString

func (s AccessDeniedException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AccessDeniedException) Message

func (s *AccessDeniedException) Message() string

Message returns the exception's message.

func (*AccessDeniedException) OrigErr

func (s *AccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AccessDeniedException) RequestID

func (s *AccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AccessDeniedException) StatusCode

func (s *AccessDeniedException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AccessDeniedException) String

func (s AccessDeniedException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type AccountEnrollmentStatus

type AccountEnrollmentStatus struct {

	// The Amazon Web Services account ID.
	AccountId *string `locationName:"accountId" type:"string"`

	// The time when the account enrollment status was created.
	CreatedTimestamp *time.Time `locationName:"createdTimestamp" type:"timestamp"`

	// The time when the account enrollment status was last updated.
	LastUpdatedTimestamp *time.Time `locationName:"lastUpdatedTimestamp" type:"timestamp"`

	// The account enrollment status.
	Status *string `locationName:"status" type:"string" enum:"EnrollmentStatus"`
	// contains filtered or unexported fields
}

Describes the enrollment status of an organization's member accounts in Cost Optimization Hub.

func (AccountEnrollmentStatus) GoString

func (s AccountEnrollmentStatus) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AccountEnrollmentStatus) SetAccountId

SetAccountId sets the AccountId field's value.

func (*AccountEnrollmentStatus) SetCreatedTimestamp

func (s *AccountEnrollmentStatus) SetCreatedTimestamp(v time.Time) *AccountEnrollmentStatus

SetCreatedTimestamp sets the CreatedTimestamp field's value.

func (*AccountEnrollmentStatus) SetLastUpdatedTimestamp

func (s *AccountEnrollmentStatus) SetLastUpdatedTimestamp(v time.Time) *AccountEnrollmentStatus

SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value.

func (*AccountEnrollmentStatus) SetStatus

SetStatus sets the Status field's value.

func (AccountEnrollmentStatus) String

func (s AccountEnrollmentStatus) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type BlockStoragePerformanceConfiguration

type BlockStoragePerformanceConfiguration struct {

	// The number of I/O operations per second.
	Iops *float64 `locationName:"iops" type:"double"`

	// The throughput that the volume supports.
	Throughput *float64 `locationName:"throughput" type:"double"`
	// contains filtered or unexported fields
}

Describes the Amazon Elastic Block Store performance configuration of the current and recommended resource configuration for a recommendation.

func (BlockStoragePerformanceConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*BlockStoragePerformanceConfiguration) SetIops

SetIops sets the Iops field's value.

func (*BlockStoragePerformanceConfiguration) SetThroughput

SetThroughput sets the Throughput field's value.

func (BlockStoragePerformanceConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ComputeConfiguration

type ComputeConfiguration struct {

	// The architecture of the resource.
	Architecture *string `locationName:"architecture" type:"string"`

	// The memory size of the resource.
	MemorySizeInMB *int64 `locationName:"memorySizeInMB" type:"integer"`

	// The platform of the resource. The platform is the specific combination of
	// operating system, license model, and software on an instance.
	Platform *string `locationName:"platform" type:"string"`

	// The number of vCPU cores in the resource.
	VCpu *float64 `locationName:"vCpu" type:"double"`
	// contains filtered or unexported fields
}

Describes the performance configuration for compute services such as Amazon EC2, Lambda, and ECS.

func (ComputeConfiguration) GoString

func (s ComputeConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ComputeConfiguration) SetArchitecture

func (s *ComputeConfiguration) SetArchitecture(v string) *ComputeConfiguration

SetArchitecture sets the Architecture field's value.

func (*ComputeConfiguration) SetMemorySizeInMB

func (s *ComputeConfiguration) SetMemorySizeInMB(v int64) *ComputeConfiguration

SetMemorySizeInMB sets the MemorySizeInMB field's value.

func (*ComputeConfiguration) SetPlatform

SetPlatform sets the Platform field's value.

func (*ComputeConfiguration) SetVCpu

SetVCpu sets the VCpu field's value.

func (ComputeConfiguration) String

func (s ComputeConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ComputeSavingsPlans

type ComputeSavingsPlans struct {

	// Configuration details of the Compute Savings Plans to purchase.
	Configuration *ComputeSavingsPlansConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the Savings Plans purchase recommendation.
	CostCalculation *SavingsPlansCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The Compute Savings Plans recommendation details.

func (ComputeSavingsPlans) GoString

func (s ComputeSavingsPlans) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ComputeSavingsPlans) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*ComputeSavingsPlans) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (ComputeSavingsPlans) String

func (s ComputeSavingsPlans) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ComputeSavingsPlansConfiguration

type ComputeSavingsPlansConfiguration struct {

	// The account scope that you want your recommendations for. Amazon Web Services
	// calculates recommendations including the management account and member accounts
	// if the value is set to PAYER. If the value is LINKED, recommendations are
	// calculated for individual member accounts only.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// The hourly commitment for the Savings Plans type.
	HourlyCommitment *string `locationName:"hourlyCommitment" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The Savings Plans recommendation term in years.
	Term *string `locationName:"term" type:"string"`
	// contains filtered or unexported fields
}

The Compute Savings Plans configuration used for recommendations.

func (ComputeSavingsPlansConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ComputeSavingsPlansConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*ComputeSavingsPlansConfiguration) SetHourlyCommitment

SetHourlyCommitment sets the HourlyCommitment field's value.

func (*ComputeSavingsPlansConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*ComputeSavingsPlansConfiguration) SetTerm

SetTerm sets the Term field's value.

func (ComputeSavingsPlansConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CostOptimizationHub

type CostOptimizationHub struct {
	*client.Client
}

CostOptimizationHub provides the API operation methods for making requests to Cost Optimization Hub. See this package's package overview docs for details on the service.

CostOptimizationHub methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

New creates a new instance of the CostOptimizationHub client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a CostOptimizationHub client from just a session.
svc := costoptimizationhub.New(mySession)

// Create a CostOptimizationHub client with additional configuration
svc := costoptimizationhub.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*CostOptimizationHub) GetPreferences

func (c *CostOptimizationHub) GetPreferences(input *GetPreferencesInput) (*GetPreferencesOutput, error)

GetPreferences API operation for Cost Optimization Hub.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cost Optimization Hub's API operation GetPreferences for usage and error information.

Returned Error Types:

  • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • InternalServerException An error on the server occurred during the processing of your request. Try again later.

  • AccessDeniedException You are not authorized to use this operation with the given parameters.

  • ThrottlingException The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/GetPreferences

func (*CostOptimizationHub) GetPreferencesRequest

func (c *CostOptimizationHub) GetPreferencesRequest(input *GetPreferencesInput) (req *request.Request, output *GetPreferencesOutput)

GetPreferencesRequest generates a "aws/request.Request" representing the client's request for the GetPreferences operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetPreferences for more information on using the GetPreferences API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetPreferencesRequest method.
req, resp := client.GetPreferencesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/GetPreferences

func (*CostOptimizationHub) GetPreferencesWithContext

func (c *CostOptimizationHub) GetPreferencesWithContext(ctx aws.Context, input *GetPreferencesInput, opts ...request.Option) (*GetPreferencesOutput, error)

GetPreferencesWithContext is the same as GetPreferences with the addition of the ability to pass a context and additional request options.

See GetPreferences for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) GetRecommendation

GetRecommendation API operation for Cost Optimization Hub.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cost Optimization Hub's API operation GetRecommendation for usage and error information.

Returned Error Types:

  • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • InternalServerException An error on the server occurred during the processing of your request. Try again later.

  • AccessDeniedException You are not authorized to use this operation with the given parameters.

  • ResourceNotFoundException The specified Amazon Resource Name (ARN) in the request doesn't exist.

  • ThrottlingException The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/GetRecommendation

func (*CostOptimizationHub) GetRecommendationRequest

func (c *CostOptimizationHub) GetRecommendationRequest(input *GetRecommendationInput) (req *request.Request, output *GetRecommendationOutput)

GetRecommendationRequest generates a "aws/request.Request" representing the client's request for the GetRecommendation operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetRecommendation for more information on using the GetRecommendation API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetRecommendationRequest method.
req, resp := client.GetRecommendationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/GetRecommendation

func (*CostOptimizationHub) GetRecommendationWithContext

func (c *CostOptimizationHub) GetRecommendationWithContext(ctx aws.Context, input *GetRecommendationInput, opts ...request.Option) (*GetRecommendationOutput, error)

GetRecommendationWithContext is the same as GetRecommendation with the addition of the ability to pass a context and additional request options.

See GetRecommendation for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) ListEnrollmentStatuses

ListEnrollmentStatuses API operation for Cost Optimization Hub.

Retrieves the enrollment status for an account. It can also return the list of accounts that are enrolled under the organization.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cost Optimization Hub's API operation ListEnrollmentStatuses for usage and error information.

Returned Error Types:

  • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • InternalServerException An error on the server occurred during the processing of your request. Try again later.

  • AccessDeniedException You are not authorized to use this operation with the given parameters.

  • ThrottlingException The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListEnrollmentStatuses

func (*CostOptimizationHub) ListEnrollmentStatusesPages

func (c *CostOptimizationHub) ListEnrollmentStatusesPages(input *ListEnrollmentStatusesInput, fn func(*ListEnrollmentStatusesOutput, bool) bool) error

ListEnrollmentStatusesPages iterates over the pages of a ListEnrollmentStatuses operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListEnrollmentStatuses method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListEnrollmentStatuses operation.
pageNum := 0
err := client.ListEnrollmentStatusesPages(params,
    func(page *costoptimizationhub.ListEnrollmentStatusesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CostOptimizationHub) ListEnrollmentStatusesPagesWithContext

func (c *CostOptimizationHub) ListEnrollmentStatusesPagesWithContext(ctx aws.Context, input *ListEnrollmentStatusesInput, fn func(*ListEnrollmentStatusesOutput, bool) bool, opts ...request.Option) error

ListEnrollmentStatusesPagesWithContext same as ListEnrollmentStatusesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) ListEnrollmentStatusesRequest

func (c *CostOptimizationHub) ListEnrollmentStatusesRequest(input *ListEnrollmentStatusesInput) (req *request.Request, output *ListEnrollmentStatusesOutput)

ListEnrollmentStatusesRequest generates a "aws/request.Request" representing the client's request for the ListEnrollmentStatuses operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListEnrollmentStatuses for more information on using the ListEnrollmentStatuses API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListEnrollmentStatusesRequest method.
req, resp := client.ListEnrollmentStatusesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListEnrollmentStatuses

func (*CostOptimizationHub) ListEnrollmentStatusesWithContext

func (c *CostOptimizationHub) ListEnrollmentStatusesWithContext(ctx aws.Context, input *ListEnrollmentStatusesInput, opts ...request.Option) (*ListEnrollmentStatusesOutput, error)

ListEnrollmentStatusesWithContext is the same as ListEnrollmentStatuses with the addition of the ability to pass a context and additional request options.

See ListEnrollmentStatuses for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) ListRecommendationSummaries

ListRecommendationSummaries API operation for Cost Optimization Hub.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cost Optimization Hub's API operation ListRecommendationSummaries for usage and error information.

Returned Error Types:

  • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • InternalServerException An error on the server occurred during the processing of your request. Try again later.

  • AccessDeniedException You are not authorized to use this operation with the given parameters.

  • ThrottlingException The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListRecommendationSummaries

func (*CostOptimizationHub) ListRecommendationSummariesPages

func (c *CostOptimizationHub) ListRecommendationSummariesPages(input *ListRecommendationSummariesInput, fn func(*ListRecommendationSummariesOutput, bool) bool) error

ListRecommendationSummariesPages iterates over the pages of a ListRecommendationSummaries operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListRecommendationSummaries method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListRecommendationSummaries operation.
pageNum := 0
err := client.ListRecommendationSummariesPages(params,
    func(page *costoptimizationhub.ListRecommendationSummariesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CostOptimizationHub) ListRecommendationSummariesPagesWithContext

func (c *CostOptimizationHub) ListRecommendationSummariesPagesWithContext(ctx aws.Context, input *ListRecommendationSummariesInput, fn func(*ListRecommendationSummariesOutput, bool) bool, opts ...request.Option) error

ListRecommendationSummariesPagesWithContext same as ListRecommendationSummariesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) ListRecommendationSummariesRequest

func (c *CostOptimizationHub) ListRecommendationSummariesRequest(input *ListRecommendationSummariesInput) (req *request.Request, output *ListRecommendationSummariesOutput)

ListRecommendationSummariesRequest generates a "aws/request.Request" representing the client's request for the ListRecommendationSummaries operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListRecommendationSummaries for more information on using the ListRecommendationSummaries API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListRecommendationSummariesRequest method.
req, resp := client.ListRecommendationSummariesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListRecommendationSummaries

func (*CostOptimizationHub) ListRecommendationSummariesWithContext

func (c *CostOptimizationHub) ListRecommendationSummariesWithContext(ctx aws.Context, input *ListRecommendationSummariesInput, opts ...request.Option) (*ListRecommendationSummariesOutput, error)

ListRecommendationSummariesWithContext is the same as ListRecommendationSummaries with the addition of the ability to pass a context and additional request options.

See ListRecommendationSummaries for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) ListRecommendations

ListRecommendations API operation for Cost Optimization Hub.

Returns a list of recommendations.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cost Optimization Hub's API operation ListRecommendations for usage and error information.

Returned Error Types:

  • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • InternalServerException An error on the server occurred during the processing of your request. Try again later.

  • AccessDeniedException You are not authorized to use this operation with the given parameters.

  • ThrottlingException The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListRecommendations

func (*CostOptimizationHub) ListRecommendationsPages

func (c *CostOptimizationHub) ListRecommendationsPages(input *ListRecommendationsInput, fn func(*ListRecommendationsOutput, bool) bool) error

ListRecommendationsPages iterates over the pages of a ListRecommendations operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListRecommendations method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListRecommendations operation.
pageNum := 0
err := client.ListRecommendationsPages(params,
    func(page *costoptimizationhub.ListRecommendationsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CostOptimizationHub) ListRecommendationsPagesWithContext

func (c *CostOptimizationHub) ListRecommendationsPagesWithContext(ctx aws.Context, input *ListRecommendationsInput, fn func(*ListRecommendationsOutput, bool) bool, opts ...request.Option) error

ListRecommendationsPagesWithContext same as ListRecommendationsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) ListRecommendationsRequest

func (c *CostOptimizationHub) ListRecommendationsRequest(input *ListRecommendationsInput) (req *request.Request, output *ListRecommendationsOutput)

ListRecommendationsRequest generates a "aws/request.Request" representing the client's request for the ListRecommendations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListRecommendations for more information on using the ListRecommendations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListRecommendationsRequest method.
req, resp := client.ListRecommendationsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/ListRecommendations

func (*CostOptimizationHub) ListRecommendationsWithContext

func (c *CostOptimizationHub) ListRecommendationsWithContext(ctx aws.Context, input *ListRecommendationsInput, opts ...request.Option) (*ListRecommendationsOutput, error)

ListRecommendationsWithContext is the same as ListRecommendations with the addition of the ability to pass a context and additional request options.

See ListRecommendations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) UpdateEnrollmentStatus

UpdateEnrollmentStatus API operation for Cost Optimization Hub.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cost Optimization Hub's API operation UpdateEnrollmentStatus for usage and error information.

Returned Error Types:

  • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • InternalServerException An error on the server occurred during the processing of your request. Try again later.

  • AccessDeniedException You are not authorized to use this operation with the given parameters.

  • ThrottlingException The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdateEnrollmentStatus

func (*CostOptimizationHub) UpdateEnrollmentStatusRequest

func (c *CostOptimizationHub) UpdateEnrollmentStatusRequest(input *UpdateEnrollmentStatusInput) (req *request.Request, output *UpdateEnrollmentStatusOutput)

UpdateEnrollmentStatusRequest generates a "aws/request.Request" representing the client's request for the UpdateEnrollmentStatus operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateEnrollmentStatus for more information on using the UpdateEnrollmentStatus API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateEnrollmentStatusRequest method.
req, resp := client.UpdateEnrollmentStatusRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdateEnrollmentStatus

func (*CostOptimizationHub) UpdateEnrollmentStatusWithContext

func (c *CostOptimizationHub) UpdateEnrollmentStatusWithContext(ctx aws.Context, input *UpdateEnrollmentStatusInput, opts ...request.Option) (*UpdateEnrollmentStatusOutput, error)

UpdateEnrollmentStatusWithContext is the same as UpdateEnrollmentStatus with the addition of the ability to pass a context and additional request options.

See UpdateEnrollmentStatus for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*CostOptimizationHub) UpdatePreferences

UpdatePreferences API operation for Cost Optimization Hub.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Cost Optimization Hub's API operation UpdatePreferences for usage and error information.

Returned Error Types:

  • ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.

  • InternalServerException An error on the server occurred during the processing of your request. Try again later.

  • AccessDeniedException You are not authorized to use this operation with the given parameters.

  • ThrottlingException The request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdatePreferences

func (*CostOptimizationHub) UpdatePreferencesRequest

func (c *CostOptimizationHub) UpdatePreferencesRequest(input *UpdatePreferencesInput) (req *request.Request, output *UpdatePreferencesOutput)

UpdatePreferencesRequest generates a "aws/request.Request" representing the client's request for the UpdatePreferences operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdatePreferences for more information on using the UpdatePreferences API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdatePreferencesRequest method.
req, resp := client.UpdatePreferencesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/UpdatePreferences

func (*CostOptimizationHub) UpdatePreferencesWithContext

func (c *CostOptimizationHub) UpdatePreferencesWithContext(ctx aws.Context, input *UpdatePreferencesInput, opts ...request.Option) (*UpdatePreferencesOutput, error)

UpdatePreferencesWithContext is the same as UpdatePreferences with the addition of the ability to pass a context and additional request options.

See UpdatePreferences for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type EbsVolume

type EbsVolume struct {

	// The Amazon Elastic Block Store volume configuration used for recommendations.
	Configuration *EbsVolumeConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the recommendation.
	CostCalculation *ResourceCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

Describes the Amazon Elastic Block Store volume configuration of the current and recommended resource configuration for a recommendation.

func (EbsVolume) GoString

func (s EbsVolume) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EbsVolume) SetConfiguration

func (s *EbsVolume) SetConfiguration(v *EbsVolumeConfiguration) *EbsVolume

SetConfiguration sets the Configuration field's value.

func (*EbsVolume) SetCostCalculation

func (s *EbsVolume) SetCostCalculation(v *ResourceCostCalculation) *EbsVolume

SetCostCalculation sets the CostCalculation field's value.

func (EbsVolume) String

func (s EbsVolume) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type EbsVolumeConfiguration

type EbsVolumeConfiguration struct {

	// The Amazon Elastic Block Store attachment state.
	AttachmentState *string `locationName:"attachmentState" type:"string"`

	// The Amazon Elastic Block Store performance configuration.
	Performance *BlockStoragePerformanceConfiguration `locationName:"performance" type:"structure"`

	// The disk storage of the Amazon Elastic Block Store volume.
	Storage *StorageConfiguration `locationName:"storage" type:"structure"`
	// contains filtered or unexported fields
}

The Amazon Elastic Block Store volume configuration used for recommendations.

func (EbsVolumeConfiguration) GoString

func (s EbsVolumeConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EbsVolumeConfiguration) SetAttachmentState

func (s *EbsVolumeConfiguration) SetAttachmentState(v string) *EbsVolumeConfiguration

SetAttachmentState sets the AttachmentState field's value.

func (*EbsVolumeConfiguration) SetPerformance

SetPerformance sets the Performance field's value.

func (*EbsVolumeConfiguration) SetStorage

SetStorage sets the Storage field's value.

func (EbsVolumeConfiguration) String

func (s EbsVolumeConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2AutoScalingGroup

type Ec2AutoScalingGroup struct {

	// The EC2 Auto Scaling group configuration used for recommendations.
	Configuration *Ec2AutoScalingGroupConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the recommendation.
	CostCalculation *ResourceCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The EC2 Auto Scaling group recommendation details.

func (Ec2AutoScalingGroup) GoString

func (s Ec2AutoScalingGroup) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2AutoScalingGroup) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*Ec2AutoScalingGroup) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (Ec2AutoScalingGroup) String

func (s Ec2AutoScalingGroup) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2AutoScalingGroupConfiguration

type Ec2AutoScalingGroupConfiguration struct {

	// Details about the instance.
	Instance *InstanceConfiguration `locationName:"instance" type:"structure"`
	// contains filtered or unexported fields
}

The EC2 auto scaling group configuration used for recommendations.

func (Ec2AutoScalingGroupConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2AutoScalingGroupConfiguration) SetInstance

SetInstance sets the Instance field's value.

func (Ec2AutoScalingGroupConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2Instance

type Ec2Instance struct {

	// The EC2 instance configuration used for recommendations.
	Configuration *Ec2InstanceConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the recommendation.
	CostCalculation *ResourceCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

Describes the EC2 instance configuration of the current and recommended resource configuration for a recommendation.

func (Ec2Instance) GoString

func (s Ec2Instance) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2Instance) SetConfiguration

func (s *Ec2Instance) SetConfiguration(v *Ec2InstanceConfiguration) *Ec2Instance

SetConfiguration sets the Configuration field's value.

func (*Ec2Instance) SetCostCalculation

func (s *Ec2Instance) SetCostCalculation(v *ResourceCostCalculation) *Ec2Instance

SetCostCalculation sets the CostCalculation field's value.

func (Ec2Instance) String

func (s Ec2Instance) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2InstanceConfiguration

type Ec2InstanceConfiguration struct {

	// Details about the instance.
	Instance *InstanceConfiguration `locationName:"instance" type:"structure"`
	// contains filtered or unexported fields
}

The EC2 instance configuration used for recommendations.

func (Ec2InstanceConfiguration) GoString

func (s Ec2InstanceConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2InstanceConfiguration) SetInstance

SetInstance sets the Instance field's value.

func (Ec2InstanceConfiguration) String

func (s Ec2InstanceConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2InstanceSavingsPlans

type Ec2InstanceSavingsPlans struct {

	// The EC2 instance Savings Plans configuration used for recommendations.
	Configuration *Ec2InstanceSavingsPlansConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the Savings Plans purchase recommendation.
	CostCalculation *SavingsPlansCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The EC2 instance Savings Plans recommendation details.

func (Ec2InstanceSavingsPlans) GoString

func (s Ec2InstanceSavingsPlans) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2InstanceSavingsPlans) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*Ec2InstanceSavingsPlans) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (Ec2InstanceSavingsPlans) String

func (s Ec2InstanceSavingsPlans) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2InstanceSavingsPlansConfiguration

type Ec2InstanceSavingsPlansConfiguration struct {

	// The account scope that you want your recommendations for.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// The hourly commitment for the Savings Plans type.
	HourlyCommitment *string `locationName:"hourlyCommitment" type:"string"`

	// The instance family of the recommended Savings Plan.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The Amazon Web Services Region of the commitment.
	SavingsPlansRegion *string `locationName:"savingsPlansRegion" type:"string"`

	// The Savings Plans recommendation term in years.
	Term *string `locationName:"term" type:"string"`
	// contains filtered or unexported fields
}

The EC2 instance Savings Plans configuration used for recommendations.

func (Ec2InstanceSavingsPlansConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2InstanceSavingsPlansConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetHourlyCommitment

SetHourlyCommitment sets the HourlyCommitment field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetInstanceFamily

SetInstanceFamily sets the InstanceFamily field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetSavingsPlansRegion

SetSavingsPlansRegion sets the SavingsPlansRegion field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetTerm

SetTerm sets the Term field's value.

func (Ec2InstanceSavingsPlansConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2ReservedInstances

type Ec2ReservedInstances struct {

	// The EC2 reserved instances configuration used for recommendations.
	Configuration *Ec2ReservedInstancesConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the purchase recommendation.
	CostCalculation *ReservedInstancesCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The EC2 reserved instances recommendation details.

func (Ec2ReservedInstances) GoString

func (s Ec2ReservedInstances) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2ReservedInstances) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*Ec2ReservedInstances) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (Ec2ReservedInstances) String

func (s Ec2ReservedInstances) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Ec2ReservedInstancesConfiguration

type Ec2ReservedInstancesConfiguration struct {

	// The account scope that you want your recommendations for.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// Determines whether the recommendation is for a current generation instance.
	CurrentGeneration *string `locationName:"currentGeneration" type:"string"`

	// The instance family of the recommended reservation.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The type of instance that Amazon Web Services recommends.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// How much purchasing reserved instances costs you on a monthly basis.
	MonthlyRecurringCost *string `locationName:"monthlyRecurringCost" type:"string"`

	// The number of normalized units that Amazon Web Services recommends that you
	// purchase.
	NormalizedUnitsToPurchase *string `locationName:"normalizedUnitsToPurchase" type:"string"`

	// The number of instances that Amazon Web Services recommends that you purchase.
	NumberOfInstancesToPurchase *string `locationName:"numberOfInstancesToPurchase" type:"string"`

	// Indicates whether the recommendation is for standard or convertible reservations.
	OfferingClass *string `locationName:"offeringClass" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The platform of the recommended reservation. The platform is the specific
	// combination of operating system, license model, and software on an instance.
	Platform *string `locationName:"platform" type:"string"`

	// The Amazon Web Services Region of the commitment.
	ReservedInstancesRegion *string `locationName:"reservedInstancesRegion" type:"string"`

	// The service that you want your recommendations for.
	Service *string `locationName:"service" type:"string"`

	// Determines whether the recommendation is size flexible.
	SizeFlexEligible *bool `locationName:"sizeFlexEligible" type:"boolean"`

	// Determines whether the recommended reservation is dedicated or shared.
	Tenancy *string `locationName:"tenancy" type:"string"`

	// The reserved instances recommendation term in years.
	Term *string `locationName:"term" type:"string"`

	// How much purchasing this instance costs you upfront.
	UpfrontCost *string `locationName:"upfrontCost" type:"string"`
	// contains filtered or unexported fields
}

The EC2 reserved instances configuration used for recommendations.

func (Ec2ReservedInstancesConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Ec2ReservedInstancesConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*Ec2ReservedInstancesConfiguration) SetCurrentGeneration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*Ec2ReservedInstancesConfiguration) SetInstanceFamily

SetInstanceFamily sets the InstanceFamily field's value.

func (*Ec2ReservedInstancesConfiguration) SetInstanceType

SetInstanceType sets the InstanceType field's value.

func (*Ec2ReservedInstancesConfiguration) SetMonthlyRecurringCost

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*Ec2ReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*Ec2ReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

func (s *Ec2ReservedInstancesConfiguration) SetNumberOfInstancesToPurchase(v string) *Ec2ReservedInstancesConfiguration

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*Ec2ReservedInstancesConfiguration) SetOfferingClass

SetOfferingClass sets the OfferingClass field's value.

func (*Ec2ReservedInstancesConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*Ec2ReservedInstancesConfiguration) SetPlatform

SetPlatform sets the Platform field's value.

func (*Ec2ReservedInstancesConfiguration) SetReservedInstancesRegion

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*Ec2ReservedInstancesConfiguration) SetService

SetService sets the Service field's value.

func (*Ec2ReservedInstancesConfiguration) SetSizeFlexEligible

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*Ec2ReservedInstancesConfiguration) SetTenancy

SetTenancy sets the Tenancy field's value.

func (*Ec2ReservedInstancesConfiguration) SetTerm

SetTerm sets the Term field's value.

func (*Ec2ReservedInstancesConfiguration) SetUpfrontCost

SetUpfrontCost sets the UpfrontCost field's value.

func (Ec2ReservedInstancesConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type EcsService

type EcsService struct {

	// The ECS service configuration used for recommendations.
	Configuration *EcsServiceConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the recommendation.
	CostCalculation *ResourceCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The ECS service recommendation details.

func (EcsService) GoString

func (s EcsService) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EcsService) SetConfiguration

func (s *EcsService) SetConfiguration(v *EcsServiceConfiguration) *EcsService

SetConfiguration sets the Configuration field's value.

func (*EcsService) SetCostCalculation

func (s *EcsService) SetCostCalculation(v *ResourceCostCalculation) *EcsService

SetCostCalculation sets the CostCalculation field's value.

func (EcsService) String

func (s EcsService) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type EcsServiceConfiguration

type EcsServiceConfiguration struct {

	// Details about the compute configuration.
	Compute *ComputeConfiguration `locationName:"compute" type:"structure"`
	// contains filtered or unexported fields
}

The ECS service configuration used for recommendations.

func (EcsServiceConfiguration) GoString

func (s EcsServiceConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EcsServiceConfiguration) SetCompute

SetCompute sets the Compute field's value.

func (EcsServiceConfiguration) String

func (s EcsServiceConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ElastiCacheReservedInstances

type ElastiCacheReservedInstances struct {

	// The ElastiCache reserved instances configuration used for recommendations.
	Configuration *ElastiCacheReservedInstancesConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the purchase recommendation.
	CostCalculation *ReservedInstancesCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The ElastiCache reserved instances recommendation details.

func (ElastiCacheReservedInstances) GoString

func (s ElastiCacheReservedInstances) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ElastiCacheReservedInstances) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*ElastiCacheReservedInstances) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (ElastiCacheReservedInstances) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ElastiCacheReservedInstancesConfiguration

type ElastiCacheReservedInstancesConfiguration struct {

	// The account scope that you want your recommendations for.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// Determines whether the recommendation is for a current generation instance.
	CurrentGeneration *string `locationName:"currentGeneration" type:"string"`

	// The instance family of the recommended reservation.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The type of instance that Amazon Web Services recommends.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// How much purchasing reserved instances costs you on a monthly basis.
	MonthlyRecurringCost *string `locationName:"monthlyRecurringCost" type:"string"`

	// The number of normalized units that Amazon Web Services recommends that you
	// purchase.
	NormalizedUnitsToPurchase *string `locationName:"normalizedUnitsToPurchase" type:"string"`

	// The number of instances that Amazon Web Services recommends that you purchase.
	NumberOfInstancesToPurchase *string `locationName:"numberOfInstancesToPurchase" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The Amazon Web Services Region of the commitment.
	ReservedInstancesRegion *string `locationName:"reservedInstancesRegion" type:"string"`

	// The service that you want your recommendations for.
	Service *string `locationName:"service" type:"string"`

	// Determines whether the recommendation is size flexible.
	SizeFlexEligible *bool `locationName:"sizeFlexEligible" type:"boolean"`

	// The reserved instances recommendation term in years.
	Term *string `locationName:"term" type:"string"`

	// How much purchasing this instance costs you upfront.
	UpfrontCost *string `locationName:"upfrontCost" type:"string"`
	// contains filtered or unexported fields
}

The ElastiCache reserved instances configuration used for recommendations.

func (ElastiCacheReservedInstancesConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ElastiCacheReservedInstancesConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetCurrentGeneration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetInstanceFamily

SetInstanceFamily sets the InstanceFamily field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetInstanceType

SetInstanceType sets the InstanceType field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetMonthlyRecurringCost

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetReservedInstancesRegion

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetService

SetService sets the Service field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetSizeFlexEligible

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetTerm

SetTerm sets the Term field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetUpfrontCost

SetUpfrontCost sets the UpfrontCost field's value.

func (ElastiCacheReservedInstancesConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type EstimatedDiscounts

type EstimatedDiscounts struct {

	// Estimated other discounts include all discounts that are not itemized. Itemized
	// discounts include reservedInstanceDiscount and savingsPlansDiscount.
	OtherDiscount *float64 `locationName:"otherDiscount" type:"double"`

	// Estimated reserved instance discounts.
	ReservedInstancesDiscount *float64 `locationName:"reservedInstancesDiscount" type:"double"`

	// Estimated Savings Plans discounts.
	SavingsPlansDiscount *float64 `locationName:"savingsPlansDiscount" type:"double"`
	// contains filtered or unexported fields
}

Estimated discount details of the current and recommended resource configuration for a recommendation.

func (EstimatedDiscounts) GoString

func (s EstimatedDiscounts) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EstimatedDiscounts) SetOtherDiscount

func (s *EstimatedDiscounts) SetOtherDiscount(v float64) *EstimatedDiscounts

SetOtherDiscount sets the OtherDiscount field's value.

func (*EstimatedDiscounts) SetReservedInstancesDiscount

func (s *EstimatedDiscounts) SetReservedInstancesDiscount(v float64) *EstimatedDiscounts

SetReservedInstancesDiscount sets the ReservedInstancesDiscount field's value.

func (*EstimatedDiscounts) SetSavingsPlansDiscount

func (s *EstimatedDiscounts) SetSavingsPlansDiscount(v float64) *EstimatedDiscounts

SetSavingsPlansDiscount sets the SavingsPlansDiscount field's value.

func (EstimatedDiscounts) String

func (s EstimatedDiscounts) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Filter

type Filter struct {

	// The account that the recommendation is for.
	AccountIds []*string `locationName:"accountIds" min:"1" type:"list"`

	// The type of action you can take by adopting the recommendation.
	ActionTypes []*string `locationName:"actionTypes" min:"1" type:"list" enum:"ActionType"`

	// The effort required to implement the recommendation.
	ImplementationEfforts []*string `locationName:"implementationEfforts" min:"1" type:"list" enum:"ImplementationEffort"`

	// The IDs for the recommendations.
	RecommendationIds []*string `locationName:"recommendationIds" min:"1" type:"list"`

	// The Amazon Web Services Region of the resource.
	Regions []*string `locationName:"regions" min:"1" type:"list"`

	// The Amazon Resource Name (ARN) of the recommendation.
	ResourceArns []*string `locationName:"resourceArns" min:"1" type:"list"`

	// The resource ID of the recommendation.
	ResourceIds []*string `locationName:"resourceIds" min:"1" type:"list"`

	// The resource type of the recommendation.
	ResourceTypes []*string `locationName:"resourceTypes" min:"1" type:"list" enum:"ResourceType"`

	// Whether or not implementing the recommendation requires a restart.
	RestartNeeded *bool `locationName:"restartNeeded" type:"boolean"`

	// Whether or not implementing the recommendation can be rolled back.
	RollbackPossible *bool `locationName:"rollbackPossible" type:"boolean"`

	// A list of tags assigned to the recommendation.
	Tags []*Tag `locationName:"tags" min:"1" type:"list"`
	// contains filtered or unexported fields
}

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

func (Filter) GoString

func (s Filter) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Filter) SetAccountIds

func (s *Filter) SetAccountIds(v []*string) *Filter

SetAccountIds sets the AccountIds field's value.

func (*Filter) SetActionTypes

func (s *Filter) SetActionTypes(v []*string) *Filter

SetActionTypes sets the ActionTypes field's value.

func (*Filter) SetImplementationEfforts

func (s *Filter) SetImplementationEfforts(v []*string) *Filter

SetImplementationEfforts sets the ImplementationEfforts field's value.

func (*Filter) SetRecommendationIds

func (s *Filter) SetRecommendationIds(v []*string) *Filter

SetRecommendationIds sets the RecommendationIds field's value.

func (*Filter) SetRegions

func (s *Filter) SetRegions(v []*string) *Filter

SetRegions sets the Regions field's value.

func (*Filter) SetResourceArns

func (s *Filter) SetResourceArns(v []*string) *Filter

SetResourceArns sets the ResourceArns field's value.

func (*Filter) SetResourceIds

func (s *Filter) SetResourceIds(v []*string) *Filter

SetResourceIds sets the ResourceIds field's value.

func (*Filter) SetResourceTypes

func (s *Filter) SetResourceTypes(v []*string) *Filter

SetResourceTypes sets the ResourceTypes field's value.

func (*Filter) SetRestartNeeded

func (s *Filter) SetRestartNeeded(v bool) *Filter

SetRestartNeeded sets the RestartNeeded field's value.

func (*Filter) SetRollbackPossible

func (s *Filter) SetRollbackPossible(v bool) *Filter

SetRollbackPossible sets the RollbackPossible field's value.

func (*Filter) SetTags

func (s *Filter) SetTags(v []*Tag) *Filter

SetTags sets the Tags field's value.

func (Filter) String

func (s Filter) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Filter) Validate

func (s *Filter) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetPreferencesInput

type GetPreferencesInput struct {
	// contains filtered or unexported fields
}

func (GetPreferencesInput) GoString

func (s GetPreferencesInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (GetPreferencesInput) String

func (s GetPreferencesInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetPreferencesOutput

type GetPreferencesOutput struct {

	// Retrieves the status of the "member account discount visibility" preference.
	MemberAccountDiscountVisibility *string `locationName:"memberAccountDiscountVisibility" type:"string" enum:"MemberAccountDiscountVisibility"`

	// Retrieves the status of the "savings estimation mode" preference.
	SavingsEstimationMode *string `locationName:"savingsEstimationMode" type:"string" enum:"SavingsEstimationMode"`
	// contains filtered or unexported fields
}

func (GetPreferencesOutput) GoString

func (s GetPreferencesOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetPreferencesOutput) SetMemberAccountDiscountVisibility

func (s *GetPreferencesOutput) SetMemberAccountDiscountVisibility(v string) *GetPreferencesOutput

SetMemberAccountDiscountVisibility sets the MemberAccountDiscountVisibility field's value.

func (*GetPreferencesOutput) SetSavingsEstimationMode

func (s *GetPreferencesOutput) SetSavingsEstimationMode(v string) *GetPreferencesOutput

SetSavingsEstimationMode sets the SavingsEstimationMode field's value.

func (GetPreferencesOutput) String

func (s GetPreferencesOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetRecommendationInput

type GetRecommendationInput struct {

	// The ID for the recommendation.
	//
	// RecommendationId is a required field
	RecommendationId *string `locationName:"recommendationId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetRecommendationInput) GoString

func (s GetRecommendationInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetRecommendationInput) SetRecommendationId

func (s *GetRecommendationInput) SetRecommendationId(v string) *GetRecommendationInput

SetRecommendationId sets the RecommendationId field's value.

func (GetRecommendationInput) String

func (s GetRecommendationInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetRecommendationInput) Validate

func (s *GetRecommendationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetRecommendationOutput

type GetRecommendationOutput struct {

	// The account that the recommendation is for.
	AccountId *string `locationName:"accountId" type:"string"`

	// The type of action you can take by adopting the recommendation.
	ActionType *string `locationName:"actionType" type:"string" enum:"ActionType"`

	// The lookback period used to calculate cost impact for a recommendation.
	CostCalculationLookbackPeriodInDays *int64 `locationName:"costCalculationLookbackPeriodInDays" type:"integer"`

	// The currency code used for the recommendation.
	CurrencyCode *string `locationName:"currencyCode" type:"string"`

	// The details for the resource.
	CurrentResourceDetails *ResourceDetails `locationName:"currentResourceDetails" type:"structure"`

	// The type of resource.
	CurrentResourceType *string `locationName:"currentResourceType" type:"string" enum:"ResourceType"`

	// The estimated monthly cost of the recommendation.
	EstimatedMonthlyCost *float64 `locationName:"estimatedMonthlyCost" type:"double"`

	// The estimated monthly savings amount for the recommendation.
	EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double"`

	// The estimated savings amount over the lookback period used to calculate cost
	// impact for a recommendation.
	EstimatedSavingsOverCostCalculationLookbackPeriod *float64 `locationName:"estimatedSavingsOverCostCalculationLookbackPeriod" type:"double"`

	// The estimated savings percentage relative to the total cost over the cost
	// calculation lookback period.
	EstimatedSavingsPercentage *float64 `locationName:"estimatedSavingsPercentage" type:"double"`

	// The effort required to implement the recommendation.
	ImplementationEffort *string `locationName:"implementationEffort" type:"string" enum:"ImplementationEffort"`

	// The time when the recommendation was last generated.
	LastRefreshTimestamp *time.Time `locationName:"lastRefreshTimestamp" type:"timestamp"`

	// The ID for the recommendation.
	RecommendationId *string `locationName:"recommendationId" type:"string"`

	// The lookback period that's used to generate the recommendation.
	RecommendationLookbackPeriodInDays *int64 `locationName:"recommendationLookbackPeriodInDays" type:"integer"`

	// The details about the recommended resource.
	RecommendedResourceDetails *ResourceDetails `locationName:"recommendedResourceDetails" type:"structure"`

	// The resource type of the recommendation.
	RecommendedResourceType *string `locationName:"recommendedResourceType" type:"string" enum:"ResourceType"`

	// The Amazon Web Services Region of the resource.
	Region *string `locationName:"region" type:"string"`

	// The Amazon Resource Name (ARN) of the resource.
	ResourceArn *string `locationName:"resourceArn" type:"string"`

	// The unique identifier for the resource. This is the same as the Amazon Resource
	// Name (ARN), if available.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// Whether or not implementing the recommendation requires a restart.
	RestartNeeded *bool `locationName:"restartNeeded" type:"boolean"`

	// Whether or not implementing the recommendation can be rolled back.
	RollbackPossible *bool `locationName:"rollbackPossible" type:"boolean"`

	// The source of the recommendation.
	Source *string `locationName:"source" type:"string" enum:"Source"`

	// A list of tags associated with the resource for which the recommendation
	// exists.
	Tags []*Tag `locationName:"tags" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (GetRecommendationOutput) GoString

func (s GetRecommendationOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetRecommendationOutput) SetAccountId

SetAccountId sets the AccountId field's value.

func (*GetRecommendationOutput) SetActionType

SetActionType sets the ActionType field's value.

func (*GetRecommendationOutput) SetCostCalculationLookbackPeriodInDays

func (s *GetRecommendationOutput) SetCostCalculationLookbackPeriodInDays(v int64) *GetRecommendationOutput

SetCostCalculationLookbackPeriodInDays sets the CostCalculationLookbackPeriodInDays field's value.

func (*GetRecommendationOutput) SetCurrencyCode

SetCurrencyCode sets the CurrencyCode field's value.

func (*GetRecommendationOutput) SetCurrentResourceDetails

func (s *GetRecommendationOutput) SetCurrentResourceDetails(v *ResourceDetails) *GetRecommendationOutput

SetCurrentResourceDetails sets the CurrentResourceDetails field's value.

func (*GetRecommendationOutput) SetCurrentResourceType

func (s *GetRecommendationOutput) SetCurrentResourceType(v string) *GetRecommendationOutput

SetCurrentResourceType sets the CurrentResourceType field's value.

func (*GetRecommendationOutput) SetEstimatedMonthlyCost

func (s *GetRecommendationOutput) SetEstimatedMonthlyCost(v float64) *GetRecommendationOutput

SetEstimatedMonthlyCost sets the EstimatedMonthlyCost field's value.

func (*GetRecommendationOutput) SetEstimatedMonthlySavings

func (s *GetRecommendationOutput) SetEstimatedMonthlySavings(v float64) *GetRecommendationOutput

SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.

func (*GetRecommendationOutput) SetEstimatedSavingsOverCostCalculationLookbackPeriod

func (s *GetRecommendationOutput) SetEstimatedSavingsOverCostCalculationLookbackPeriod(v float64) *GetRecommendationOutput

SetEstimatedSavingsOverCostCalculationLookbackPeriod sets the EstimatedSavingsOverCostCalculationLookbackPeriod field's value.

func (*GetRecommendationOutput) SetEstimatedSavingsPercentage

func (s *GetRecommendationOutput) SetEstimatedSavingsPercentage(v float64) *GetRecommendationOutput

SetEstimatedSavingsPercentage sets the EstimatedSavingsPercentage field's value.

func (*GetRecommendationOutput) SetImplementationEffort

func (s *GetRecommendationOutput) SetImplementationEffort(v string) *GetRecommendationOutput

SetImplementationEffort sets the ImplementationEffort field's value.

func (*GetRecommendationOutput) SetLastRefreshTimestamp

func (s *GetRecommendationOutput) SetLastRefreshTimestamp(v time.Time) *GetRecommendationOutput

SetLastRefreshTimestamp sets the LastRefreshTimestamp field's value.

func (*GetRecommendationOutput) SetRecommendationId

func (s *GetRecommendationOutput) SetRecommendationId(v string) *GetRecommendationOutput

SetRecommendationId sets the RecommendationId field's value.

func (*GetRecommendationOutput) SetRecommendationLookbackPeriodInDays

func (s *GetRecommendationOutput) SetRecommendationLookbackPeriodInDays(v int64) *GetRecommendationOutput

SetRecommendationLookbackPeriodInDays sets the RecommendationLookbackPeriodInDays field's value.

func (*GetRecommendationOutput) SetRecommendedResourceDetails

func (s *GetRecommendationOutput) SetRecommendedResourceDetails(v *ResourceDetails) *GetRecommendationOutput

SetRecommendedResourceDetails sets the RecommendedResourceDetails field's value.

func (*GetRecommendationOutput) SetRecommendedResourceType

func (s *GetRecommendationOutput) SetRecommendedResourceType(v string) *GetRecommendationOutput

SetRecommendedResourceType sets the RecommendedResourceType field's value.

func (*GetRecommendationOutput) SetRegion

SetRegion sets the Region field's value.

func (*GetRecommendationOutput) SetResourceArn

SetResourceArn sets the ResourceArn field's value.

func (*GetRecommendationOutput) SetResourceId

SetResourceId sets the ResourceId field's value.

func (*GetRecommendationOutput) SetRestartNeeded

func (s *GetRecommendationOutput) SetRestartNeeded(v bool) *GetRecommendationOutput

SetRestartNeeded sets the RestartNeeded field's value.

func (*GetRecommendationOutput) SetRollbackPossible

func (s *GetRecommendationOutput) SetRollbackPossible(v bool) *GetRecommendationOutput

SetRollbackPossible sets the RollbackPossible field's value.

func (*GetRecommendationOutput) SetSource

SetSource sets the Source field's value.

func (*GetRecommendationOutput) SetTags

SetTags sets the Tags field's value.

func (GetRecommendationOutput) String

func (s GetRecommendationOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type InstanceConfiguration

type InstanceConfiguration struct {

	// Details about the type.
	Type *string `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

The Instance configuration used for recommendations.

func (InstanceConfiguration) GoString

func (s InstanceConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*InstanceConfiguration) SetType

SetType sets the Type field's value.

func (InstanceConfiguration) String

func (s InstanceConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type InternalServerException

type InternalServerException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

An error on the server occurred during the processing of your request. Try again later.

func (*InternalServerException) Code

func (s *InternalServerException) Code() string

Code returns the exception type name.

func (*InternalServerException) Error

func (s *InternalServerException) Error() string

func (InternalServerException) GoString

func (s InternalServerException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*InternalServerException) Message

func (s *InternalServerException) Message() string

Message returns the exception's message.

func (*InternalServerException) OrigErr

func (s *InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServerException) RequestID

func (s *InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServerException) StatusCode

func (s *InternalServerException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServerException) String

func (s InternalServerException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type LambdaFunction

type LambdaFunction struct {

	// The Lambda function configuration used for recommendations.
	Configuration *LambdaFunctionConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the recommendation.
	CostCalculation *ResourceCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The Lambda function recommendation details.

func (LambdaFunction) GoString

func (s LambdaFunction) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*LambdaFunction) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*LambdaFunction) SetCostCalculation

func (s *LambdaFunction) SetCostCalculation(v *ResourceCostCalculation) *LambdaFunction

SetCostCalculation sets the CostCalculation field's value.

func (LambdaFunction) String

func (s LambdaFunction) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type LambdaFunctionConfiguration

type LambdaFunctionConfiguration struct {

	// Details about the compute configuration.
	Compute *ComputeConfiguration `locationName:"compute" type:"structure"`
	// contains filtered or unexported fields
}

The Lambda function configuration used for recommendations.

func (LambdaFunctionConfiguration) GoString

func (s LambdaFunctionConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*LambdaFunctionConfiguration) SetCompute

SetCompute sets the Compute field's value.

func (LambdaFunctionConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListEnrollmentStatusesInput

type ListEnrollmentStatusesInput struct {

	// The enrollment status of a specific account ID in the organization.
	AccountId *string `locationName:"accountId" type:"string"`

	// Indicates whether to return the enrollment status for the organization.
	IncludeOrganizationInfo *bool `locationName:"includeOrganizationInfo" type:"boolean"`

	// The maximum number of objects that are returned for the request.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListEnrollmentStatusesInput) GoString

func (s ListEnrollmentStatusesInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListEnrollmentStatusesInput) SetAccountId

SetAccountId sets the AccountId field's value.

func (*ListEnrollmentStatusesInput) SetIncludeOrganizationInfo

func (s *ListEnrollmentStatusesInput) SetIncludeOrganizationInfo(v bool) *ListEnrollmentStatusesInput

SetIncludeOrganizationInfo sets the IncludeOrganizationInfo field's value.

func (*ListEnrollmentStatusesInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListEnrollmentStatusesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListEnrollmentStatusesInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListEnrollmentStatusesOutput

type ListEnrollmentStatusesOutput struct {

	// The account enrollment statuses.
	Items []*AccountEnrollmentStatus `locationName:"items" type:"list"`

	// The token to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListEnrollmentStatusesOutput) GoString

func (s ListEnrollmentStatusesOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListEnrollmentStatusesOutput) SetItems

SetItems sets the Items field's value.

func (*ListEnrollmentStatusesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListEnrollmentStatusesOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListRecommendationSummariesInput

type ListRecommendationSummariesInput struct {

	// Describes a filter that returns a more specific list of recommendations.
	// Filters recommendations by different dimensions.
	Filter *Filter `locationName:"filter" type:"structure"`

	// The grouping of recommendations by a dimension.
	//
	// GroupBy is a required field
	GroupBy *string `locationName:"groupBy" type:"string" required:"true"`

	// The maximum number of recommendations that are returned for the request.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListRecommendationSummariesInput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListRecommendationSummariesInput) SetFilter

SetFilter sets the Filter field's value.

func (*ListRecommendationSummariesInput) SetGroupBy

SetGroupBy sets the GroupBy field's value.

func (*ListRecommendationSummariesInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListRecommendationSummariesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListRecommendationSummariesInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListRecommendationSummariesInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type ListRecommendationSummariesOutput

type ListRecommendationSummariesOutput struct {

	// The currency code used for the recommendation.
	CurrencyCode *string `locationName:"currencyCode" type:"string"`

	// The total overall savings for the aggregated view.
	EstimatedTotalDedupedSavings *float64 `locationName:"estimatedTotalDedupedSavings" type:"double"`

	// The dimension used to group the recommendations by.
	GroupBy *string `locationName:"groupBy" type:"string"`

	// List of all savings recommendations.
	Items []*RecommendationSummary `locationName:"items" type:"list"`

	// The token to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListRecommendationSummariesOutput) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListRecommendationSummariesOutput) SetCurrencyCode

SetCurrencyCode sets the CurrencyCode field's value.

func (*ListRecommendationSummariesOutput) SetEstimatedTotalDedupedSavings

func (s *ListRecommendationSummariesOutput) SetEstimatedTotalDedupedSavings(v float64) *ListRecommendationSummariesOutput

SetEstimatedTotalDedupedSavings sets the EstimatedTotalDedupedSavings field's value.

func (*ListRecommendationSummariesOutput) SetGroupBy

SetGroupBy sets the GroupBy field's value.

func (*ListRecommendationSummariesOutput) SetItems

SetItems sets the Items field's value.

func (*ListRecommendationSummariesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListRecommendationSummariesOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListRecommendationsInput

type ListRecommendationsInput struct {

	// The constraints that you want all returned recommendations to match.
	Filter *Filter `locationName:"filter" type:"structure"`

	// List of all recommendations for a resource, or a single recommendation if
	// de-duped by resourceId.
	IncludeAllRecommendations *bool `locationName:"includeAllRecommendations" type:"boolean"`

	// The maximum number of recommendations that are returned for the request.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// The token to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ordering of recommendations by a dimension.
	OrderBy *OrderBy `locationName:"orderBy" type:"structure"`
	// contains filtered or unexported fields
}

func (ListRecommendationsInput) GoString

func (s ListRecommendationsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListRecommendationsInput) SetFilter

SetFilter sets the Filter field's value.

func (*ListRecommendationsInput) SetIncludeAllRecommendations

func (s *ListRecommendationsInput) SetIncludeAllRecommendations(v bool) *ListRecommendationsInput

SetIncludeAllRecommendations sets the IncludeAllRecommendations field's value.

func (*ListRecommendationsInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListRecommendationsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListRecommendationsInput) SetOrderBy

SetOrderBy sets the OrderBy field's value.

func (ListRecommendationsInput) String

func (s ListRecommendationsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListRecommendationsInput) Validate

func (s *ListRecommendationsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListRecommendationsOutput

type ListRecommendationsOutput struct {

	// List of all savings recommendations.
	Items []*Recommendation `locationName:"items" type:"list"`

	// The token to retrieve the next set of results.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListRecommendationsOutput) GoString

func (s ListRecommendationsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListRecommendationsOutput) SetItems

SetItems sets the Items field's value.

func (*ListRecommendationsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListRecommendationsOutput) String

func (s ListRecommendationsOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type OpenSearchReservedInstances

type OpenSearchReservedInstances struct {

	// The OpenSearch reserved instances configuration used for recommendations.
	Configuration *OpenSearchReservedInstancesConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the purchase recommendation.
	CostCalculation *ReservedInstancesCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The OpenSearch reserved instances recommendation details.

func (OpenSearchReservedInstances) GoString

func (s OpenSearchReservedInstances) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OpenSearchReservedInstances) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*OpenSearchReservedInstances) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (OpenSearchReservedInstances) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type OpenSearchReservedInstancesConfiguration

type OpenSearchReservedInstancesConfiguration struct {

	// The account scope that you want your recommendations for.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// Determines whether the recommendation is for a current generation instance.
	CurrentGeneration *string `locationName:"currentGeneration" type:"string"`

	// The type of instance that Amazon Web Services recommends.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// How much purchasing reserved instances costs you on a monthly basis.
	MonthlyRecurringCost *string `locationName:"monthlyRecurringCost" type:"string"`

	// The number of normalized units that Amazon Web Services recommends that you
	// purchase.
	NormalizedUnitsToPurchase *string `locationName:"normalizedUnitsToPurchase" type:"string"`

	// The number of instances that Amazon Web Services recommends that you purchase.
	NumberOfInstancesToPurchase *string `locationName:"numberOfInstancesToPurchase" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The Amazon Web Services Region of the commitment.
	ReservedInstancesRegion *string `locationName:"reservedInstancesRegion" type:"string"`

	// The service that you want your recommendations for.
	Service *string `locationName:"service" type:"string"`

	// Determines whether the recommendation is size flexible.
	SizeFlexEligible *bool `locationName:"sizeFlexEligible" type:"boolean"`

	// The reserved instances recommendation term in years.
	Term *string `locationName:"term" type:"string"`

	// How much purchasing this instance costs you upfront.
	UpfrontCost *string `locationName:"upfrontCost" type:"string"`
	// contains filtered or unexported fields
}

The OpenSearch reserved instances configuration used for recommendations.

func (OpenSearchReservedInstancesConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OpenSearchReservedInstancesConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*OpenSearchReservedInstancesConfiguration) SetCurrentGeneration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*OpenSearchReservedInstancesConfiguration) SetInstanceType

SetInstanceType sets the InstanceType field's value.

func (*OpenSearchReservedInstancesConfiguration) SetMonthlyRecurringCost

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*OpenSearchReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*OpenSearchReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*OpenSearchReservedInstancesConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*OpenSearchReservedInstancesConfiguration) SetReservedInstancesRegion

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*OpenSearchReservedInstancesConfiguration) SetService

SetService sets the Service field's value.

func (*OpenSearchReservedInstancesConfiguration) SetSizeFlexEligible

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*OpenSearchReservedInstancesConfiguration) SetTerm

SetTerm sets the Term field's value.

func (*OpenSearchReservedInstancesConfiguration) SetUpfrontCost

SetUpfrontCost sets the UpfrontCost field's value.

func (OpenSearchReservedInstancesConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type OrderBy

type OrderBy struct {

	// Sorts by dimension values.
	Dimension *string `locationName:"dimension" type:"string"`

	// The order that's used to sort the data.
	Order *string `locationName:"order" type:"string" enum:"Order"`
	// contains filtered or unexported fields
}

Defines how rows will be sorted in the response.

func (OrderBy) GoString

func (s OrderBy) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*OrderBy) SetDimension

func (s *OrderBy) SetDimension(v string) *OrderBy

SetDimension sets the Dimension field's value.

func (*OrderBy) SetOrder

func (s *OrderBy) SetOrder(v string) *OrderBy

SetOrder sets the Order field's value.

func (OrderBy) String

func (s OrderBy) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type RdsReservedInstances

type RdsReservedInstances struct {

	// The RDS reserved instances configuration used for recommendations.
	Configuration *RdsReservedInstancesConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the purchase recommendation.
	CostCalculation *ReservedInstancesCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The RDS reserved instances recommendation details.

func (RdsReservedInstances) GoString

func (s RdsReservedInstances) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*RdsReservedInstances) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*RdsReservedInstances) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (RdsReservedInstances) String

func (s RdsReservedInstances) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type RdsReservedInstancesConfiguration

type RdsReservedInstancesConfiguration struct {

	// The account scope that you want your recommendations for.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// Determines whether the recommendation is for a current generation instance.
	CurrentGeneration *string `locationName:"currentGeneration" type:"string"`

	// The database edition that the recommended reservation supports.
	DatabaseEdition *string `locationName:"databaseEdition" type:"string"`

	// The database engine that the recommended reservation supports.
	DatabaseEngine *string `locationName:"databaseEngine" type:"string"`

	// Determines whether the recommendation is for a reservation in a single Availability
	// Zone or a reservation with a backup in a second Availability Zone.
	DeploymentOption *string `locationName:"deploymentOption" type:"string"`

	// The instance family of the recommended reservation.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The type of instance that Amazon Web Services recommends.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// The license model that the recommended reservation supports.
	LicenseModel *string `locationName:"licenseModel" type:"string"`

	// How much purchasing this instance costs you on a monthly basis.
	MonthlyRecurringCost *string `locationName:"monthlyRecurringCost" type:"string"`

	// The number of normalized units that Amazon Web Services recommends that you
	// purchase.
	NormalizedUnitsToPurchase *string `locationName:"normalizedUnitsToPurchase" type:"string"`

	// The number of instances that Amazon Web Services recommends that you purchase.
	NumberOfInstancesToPurchase *string `locationName:"numberOfInstancesToPurchase" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The Amazon Web Services Region of the commitment.
	ReservedInstancesRegion *string `locationName:"reservedInstancesRegion" type:"string"`

	// The service that you want your recommendations for.
	Service *string `locationName:"service" type:"string"`

	// Determines whether the recommendation is size flexible.
	SizeFlexEligible *bool `locationName:"sizeFlexEligible" type:"boolean"`

	// The reserved instances recommendation term in years.
	Term *string `locationName:"term" type:"string"`

	// How much purchasing this instance costs you upfront.
	UpfrontCost *string `locationName:"upfrontCost" type:"string"`
	// contains filtered or unexported fields
}

The RDS reserved instances configuration used for recommendations.

func (RdsReservedInstancesConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*RdsReservedInstancesConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*RdsReservedInstancesConfiguration) SetCurrentGeneration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*RdsReservedInstancesConfiguration) SetDatabaseEdition

SetDatabaseEdition sets the DatabaseEdition field's value.

func (*RdsReservedInstancesConfiguration) SetDatabaseEngine

SetDatabaseEngine sets the DatabaseEngine field's value.

func (*RdsReservedInstancesConfiguration) SetDeploymentOption

SetDeploymentOption sets the DeploymentOption field's value.

func (*RdsReservedInstancesConfiguration) SetInstanceFamily

SetInstanceFamily sets the InstanceFamily field's value.

func (*RdsReservedInstancesConfiguration) SetInstanceType

SetInstanceType sets the InstanceType field's value.

func (*RdsReservedInstancesConfiguration) SetLicenseModel

SetLicenseModel sets the LicenseModel field's value.

func (*RdsReservedInstancesConfiguration) SetMonthlyRecurringCost

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*RdsReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*RdsReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

func (s *RdsReservedInstancesConfiguration) SetNumberOfInstancesToPurchase(v string) *RdsReservedInstancesConfiguration

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*RdsReservedInstancesConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*RdsReservedInstancesConfiguration) SetReservedInstancesRegion

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*RdsReservedInstancesConfiguration) SetService

SetService sets the Service field's value.

func (*RdsReservedInstancesConfiguration) SetSizeFlexEligible

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*RdsReservedInstancesConfiguration) SetTerm

SetTerm sets the Term field's value.

func (*RdsReservedInstancesConfiguration) SetUpfrontCost

SetUpfrontCost sets the UpfrontCost field's value.

func (RdsReservedInstancesConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Recommendation

type Recommendation struct {

	// The account that the recommendation is for.
	AccountId *string `locationName:"accountId" type:"string"`

	// The type of tasks that can be carried out by this action.
	ActionType *string `locationName:"actionType" type:"string"`

	// The currency code used for the recommendation.
	CurrencyCode *string `locationName:"currencyCode" type:"string"`

	// Describes the current resource.
	CurrentResourceSummary *string `locationName:"currentResourceSummary" type:"string"`

	// The current resource type.
	CurrentResourceType *string `locationName:"currentResourceType" type:"string"`

	// The estimated monthly cost for the recommendation.
	EstimatedMonthlyCost *float64 `locationName:"estimatedMonthlyCost" type:"double"`

	// The estimated monthly savings amount for the recommendation.
	EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double"`

	// The estimated savings percentage relative to the total cost over the cost
	// calculation lookback period.
	EstimatedSavingsPercentage *float64 `locationName:"estimatedSavingsPercentage" type:"double"`

	// The effort required to implement the recommendation.
	ImplementationEffort *string `locationName:"implementationEffort" type:"string"`

	// The time when the recommendation was last generated.
	LastRefreshTimestamp *time.Time `locationName:"lastRefreshTimestamp" type:"timestamp"`

	// The ID for the recommendation.
	RecommendationId *string `locationName:"recommendationId" type:"string"`

	// The lookback period that's used to generate the recommendation.
	RecommendationLookbackPeriodInDays *int64 `locationName:"recommendationLookbackPeriodInDays" type:"integer"`

	// Describes the recommended resource.
	RecommendedResourceSummary *string `locationName:"recommendedResourceSummary" type:"string"`

	// The recommended resource type.
	RecommendedResourceType *string `locationName:"recommendedResourceType" type:"string"`

	// The Amazon Web Services Region of the resource.
	Region *string `locationName:"region" type:"string"`

	// The Amazon Resource Name (ARN) for the recommendation.
	ResourceArn *string `locationName:"resourceArn" type:"string"`

	// The resource ID for the recommendation.
	ResourceId *string `locationName:"resourceId" type:"string"`

	// Whether or not implementing the recommendation requires a restart.
	RestartNeeded *bool `locationName:"restartNeeded" type:"boolean"`

	// Whether or not implementing the recommendation can be rolled back.
	RollbackPossible *bool `locationName:"rollbackPossible" type:"boolean"`

	// The source of the recommendation.
	Source *string `locationName:"source" type:"string" enum:"Source"`

	// A list of tags assigned to the recommendation.
	Tags []*Tag `locationName:"tags" min:"1" type:"list"`
	// contains filtered or unexported fields
}

Describes a recommendation.

func (Recommendation) GoString

func (s Recommendation) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Recommendation) SetAccountId

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

SetAccountId sets the AccountId field's value.

func (*Recommendation) SetActionType

func (s *Recommendation) SetActionType(v string) *Recommendation

SetActionType sets the ActionType field's value.

func (*Recommendation) SetCurrencyCode

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

SetCurrencyCode sets the CurrencyCode field's value.

func (*Recommendation) SetCurrentResourceSummary

func (s *Recommendation) SetCurrentResourceSummary(v string) *Recommendation

SetCurrentResourceSummary sets the CurrentResourceSummary field's value.

func (*Recommendation) SetCurrentResourceType

func (s *Recommendation) SetCurrentResourceType(v string) *Recommendation

SetCurrentResourceType sets the CurrentResourceType field's value.

func (*Recommendation) SetEstimatedMonthlyCost

func (s *Recommendation) SetEstimatedMonthlyCost(v float64) *Recommendation

SetEstimatedMonthlyCost sets the EstimatedMonthlyCost field's value.

func (*Recommendation) SetEstimatedMonthlySavings

func (s *Recommendation) SetEstimatedMonthlySavings(v float64) *Recommendation

SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.

func (*Recommendation) SetEstimatedSavingsPercentage

func (s *Recommendation) SetEstimatedSavingsPercentage(v float64) *Recommendation

SetEstimatedSavingsPercentage sets the EstimatedSavingsPercentage field's value.

func (*Recommendation) SetImplementationEffort

func (s *Recommendation) SetImplementationEffort(v string) *Recommendation

SetImplementationEffort sets the ImplementationEffort field's value.

func (*Recommendation) SetLastRefreshTimestamp

func (s *Recommendation) SetLastRefreshTimestamp(v time.Time) *Recommendation

SetLastRefreshTimestamp sets the LastRefreshTimestamp field's value.

func (*Recommendation) SetRecommendationId

func (s *Recommendation) SetRecommendationId(v string) *Recommendation

SetRecommendationId sets the RecommendationId field's value.

func (*Recommendation) SetRecommendationLookbackPeriodInDays

func (s *Recommendation) SetRecommendationLookbackPeriodInDays(v int64) *Recommendation

SetRecommendationLookbackPeriodInDays sets the RecommendationLookbackPeriodInDays field's value.

func (*Recommendation) SetRecommendedResourceSummary

func (s *Recommendation) SetRecommendedResourceSummary(v string) *Recommendation

SetRecommendedResourceSummary sets the RecommendedResourceSummary field's value.

func (*Recommendation) SetRecommendedResourceType

func (s *Recommendation) SetRecommendedResourceType(v string) *Recommendation

SetRecommendedResourceType sets the RecommendedResourceType field's value.

func (*Recommendation) SetRegion

func (s *Recommendation) SetRegion(v string) *Recommendation

SetRegion sets the Region field's value.

func (*Recommendation) SetResourceArn

func (s *Recommendation) SetResourceArn(v string) *Recommendation

SetResourceArn sets the ResourceArn field's value.

func (*Recommendation) SetResourceId

func (s *Recommendation) SetResourceId(v string) *Recommendation

SetResourceId sets the ResourceId field's value.

func (*Recommendation) SetRestartNeeded

func (s *Recommendation) SetRestartNeeded(v bool) *Recommendation

SetRestartNeeded sets the RestartNeeded field's value.

func (*Recommendation) SetRollbackPossible

func (s *Recommendation) SetRollbackPossible(v bool) *Recommendation

SetRollbackPossible sets the RollbackPossible field's value.

func (*Recommendation) SetSource

func (s *Recommendation) SetSource(v string) *Recommendation

SetSource sets the Source field's value.

func (*Recommendation) SetTags

func (s *Recommendation) SetTags(v []*Tag) *Recommendation

SetTags sets the Tags field's value.

func (Recommendation) String

func (s Recommendation) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type RecommendationSummary

type RecommendationSummary struct {

	// The estimated total savings resulting from modifications, on a monthly basis.
	EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double"`

	// The grouping of recommendations.
	Group *string `locationName:"group" type:"string"`

	// The total number of instance recommendations.
	RecommendationCount *int64 `locationName:"recommendationCount" type:"integer"`
	// contains filtered or unexported fields
}

The summary of rightsizing recommendations, including de-duped savings from all types of recommendations.

func (RecommendationSummary) GoString

func (s RecommendationSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*RecommendationSummary) SetEstimatedMonthlySavings

func (s *RecommendationSummary) SetEstimatedMonthlySavings(v float64) *RecommendationSummary

SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.

func (*RecommendationSummary) SetGroup

SetGroup sets the Group field's value.

func (*RecommendationSummary) SetRecommendationCount

func (s *RecommendationSummary) SetRecommendationCount(v int64) *RecommendationSummary

SetRecommendationCount sets the RecommendationCount field's value.

func (RecommendationSummary) String

func (s RecommendationSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type RedshiftReservedInstances

type RedshiftReservedInstances struct {

	// The Redshift reserved instances configuration used for recommendations.
	Configuration *RedshiftReservedInstancesConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the purchase recommendation.
	CostCalculation *ReservedInstancesCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The Redshift reserved instances recommendation details.

func (RedshiftReservedInstances) GoString

func (s RedshiftReservedInstances) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*RedshiftReservedInstances) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*RedshiftReservedInstances) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (RedshiftReservedInstances) String

func (s RedshiftReservedInstances) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type RedshiftReservedInstancesConfiguration

type RedshiftReservedInstancesConfiguration struct {

	// The account scope that you want your recommendations for.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// Determines whether the recommendation is for a current generation instance.
	CurrentGeneration *string `locationName:"currentGeneration" type:"string"`

	// The instance family of the recommended reservation.
	InstanceFamily *string `locationName:"instanceFamily" type:"string"`

	// The type of instance that Amazon Web Services recommends.
	InstanceType *string `locationName:"instanceType" type:"string"`

	// How much purchasing reserved instances costs you on a monthly basis.
	MonthlyRecurringCost *string `locationName:"monthlyRecurringCost" type:"string"`

	// The number of normalized units that Amazon Web Services recommends that you
	// purchase.
	NormalizedUnitsToPurchase *string `locationName:"normalizedUnitsToPurchase" type:"string"`

	// The number of instances that Amazon Web Services recommends that you purchase.
	NumberOfInstancesToPurchase *string `locationName:"numberOfInstancesToPurchase" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The Amazon Web Services Region of the commitment.
	ReservedInstancesRegion *string `locationName:"reservedInstancesRegion" type:"string"`

	// The service that you want your recommendations for.
	Service *string `locationName:"service" type:"string"`

	// Determines whether the recommendation is size flexible.
	SizeFlexEligible *bool `locationName:"sizeFlexEligible" type:"boolean"`

	// The reserved instances recommendation term in years.
	Term *string `locationName:"term" type:"string"`

	// How much purchasing this instance costs you upfront.
	UpfrontCost *string `locationName:"upfrontCost" type:"string"`
	// contains filtered or unexported fields
}

The Redshift reserved instances configuration used for recommendations.

func (RedshiftReservedInstancesConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*RedshiftReservedInstancesConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*RedshiftReservedInstancesConfiguration) SetCurrentGeneration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*RedshiftReservedInstancesConfiguration) SetInstanceFamily

SetInstanceFamily sets the InstanceFamily field's value.

func (*RedshiftReservedInstancesConfiguration) SetInstanceType

SetInstanceType sets the InstanceType field's value.

func (*RedshiftReservedInstancesConfiguration) SetMonthlyRecurringCost

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*RedshiftReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*RedshiftReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*RedshiftReservedInstancesConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*RedshiftReservedInstancesConfiguration) SetReservedInstancesRegion

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*RedshiftReservedInstancesConfiguration) SetService

SetService sets the Service field's value.

func (*RedshiftReservedInstancesConfiguration) SetSizeFlexEligible

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*RedshiftReservedInstancesConfiguration) SetTerm

SetTerm sets the Term field's value.

func (*RedshiftReservedInstancesConfiguration) SetUpfrontCost

SetUpfrontCost sets the UpfrontCost field's value.

func (RedshiftReservedInstancesConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ReservedInstancesCostCalculation

type ReservedInstancesCostCalculation struct {

	// Pricing details of the purchase recommendation.
	Pricing *ReservedInstancesPricing `locationName:"pricing" type:"structure"`
	// contains filtered or unexported fields
}

Cost impact of the purchase recommendation.

func (ReservedInstancesCostCalculation) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ReservedInstancesCostCalculation) SetPricing

SetPricing sets the Pricing field's value.

func (ReservedInstancesCostCalculation) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ReservedInstancesPricing

type ReservedInstancesPricing struct {

	// The estimated cost of your recurring monthly fees for the recommended reserved
	// instance across the month.
	EstimatedMonthlyAmortizedReservationCost *float64 `locationName:"estimatedMonthlyAmortizedReservationCost" type:"double"`

	// The remaining On-Demand cost estimated to not be covered by the recommended
	// reserved instance, over the length of the lookback period.
	EstimatedOnDemandCost *float64 `locationName:"estimatedOnDemandCost" type:"double"`

	// The cost of paying for the recommended reserved instance monthly.
	MonthlyReservationEligibleCost *float64 `locationName:"monthlyReservationEligibleCost" type:"double"`

	// The savings percentage relative to the total On-Demand costs that are associated
	// with this instance.
	SavingsPercentage *float64 `locationName:"savingsPercentage" type:"double"`
	// contains filtered or unexported fields
}

Pricing details for your recommended reserved instance.

func (ReservedInstancesPricing) GoString

func (s ReservedInstancesPricing) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ReservedInstancesPricing) SetEstimatedMonthlyAmortizedReservationCost

func (s *ReservedInstancesPricing) SetEstimatedMonthlyAmortizedReservationCost(v float64) *ReservedInstancesPricing

SetEstimatedMonthlyAmortizedReservationCost sets the EstimatedMonthlyAmortizedReservationCost field's value.

func (*ReservedInstancesPricing) SetEstimatedOnDemandCost

func (s *ReservedInstancesPricing) SetEstimatedOnDemandCost(v float64) *ReservedInstancesPricing

SetEstimatedOnDemandCost sets the EstimatedOnDemandCost field's value.

func (*ReservedInstancesPricing) SetMonthlyReservationEligibleCost

func (s *ReservedInstancesPricing) SetMonthlyReservationEligibleCost(v float64) *ReservedInstancesPricing

SetMonthlyReservationEligibleCost sets the MonthlyReservationEligibleCost field's value.

func (*ReservedInstancesPricing) SetSavingsPercentage

func (s *ReservedInstancesPricing) SetSavingsPercentage(v float64) *ReservedInstancesPricing

SetSavingsPercentage sets the SavingsPercentage field's value.

func (ReservedInstancesPricing) String

func (s ReservedInstancesPricing) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ResourceCostCalculation

type ResourceCostCalculation struct {

	// Pricing details of the resource recommendation.
	Pricing *ResourcePricing `locationName:"pricing" type:"structure"`

	// Usage details of the resource recommendation.
	Usages []*Usage `locationName:"usages" type:"list"`
	// contains filtered or unexported fields
}

Cost impact of the resource recommendation.

func (ResourceCostCalculation) GoString

func (s ResourceCostCalculation) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ResourceCostCalculation) SetPricing

SetPricing sets the Pricing field's value.

func (*ResourceCostCalculation) SetUsages

SetUsages sets the Usages field's value.

func (ResourceCostCalculation) String

func (s ResourceCostCalculation) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ResourceDetails

type ResourceDetails struct {

	// The Compute Savings Plans recommendation details.
	ComputeSavingsPlans *ComputeSavingsPlans `locationName:"computeSavingsPlans" type:"structure"`

	// The Amazon Elastic Block Store volume recommendation details.
	EbsVolume *EbsVolume `locationName:"ebsVolume" type:"structure"`

	// The EC2 Auto Scaling group recommendation details.
	Ec2AutoScalingGroup *Ec2AutoScalingGroup `locationName:"ec2AutoScalingGroup" type:"structure"`

	// The EC2 instance recommendation details.
	Ec2Instance *Ec2Instance `locationName:"ec2Instance" type:"structure"`

	// The EC2 instance Savings Plans recommendation details.
	Ec2InstanceSavingsPlans *Ec2InstanceSavingsPlans `locationName:"ec2InstanceSavingsPlans" type:"structure"`

	// The EC2 reserved instances recommendation details.
	Ec2ReservedInstances *Ec2ReservedInstances `locationName:"ec2ReservedInstances" type:"structure"`

	// The ECS service recommendation details.
	EcsService *EcsService `locationName:"ecsService" type:"structure"`

	// The ElastiCache reserved instances recommendation details.
	ElastiCacheReservedInstances *ElastiCacheReservedInstances `locationName:"elastiCacheReservedInstances" type:"structure"`

	// The Lambda function recommendation details.
	LambdaFunction *LambdaFunction `locationName:"lambdaFunction" type:"structure"`

	// The OpenSearch reserved instances recommendation details.
	OpenSearchReservedInstances *OpenSearchReservedInstances `locationName:"openSearchReservedInstances" type:"structure"`

	// The RDS reserved instances recommendation details.
	RdsReservedInstances *RdsReservedInstances `locationName:"rdsReservedInstances" type:"structure"`

	// The Redshift reserved instances recommendation details.
	RedshiftReservedInstances *RedshiftReservedInstances `locationName:"redshiftReservedInstances" type:"structure"`

	// The SageMaker Savings Plans recommendation details.
	SageMakerSavingsPlans *SageMakerSavingsPlans `locationName:"sageMakerSavingsPlans" type:"structure"`
	// contains filtered or unexported fields
}

Contains detailed information about the specified resource.

func (ResourceDetails) GoString

func (s ResourceDetails) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ResourceDetails) SetComputeSavingsPlans

func (s *ResourceDetails) SetComputeSavingsPlans(v *ComputeSavingsPlans) *ResourceDetails

SetComputeSavingsPlans sets the ComputeSavingsPlans field's value.

func (*ResourceDetails) SetEbsVolume

func (s *ResourceDetails) SetEbsVolume(v *EbsVolume) *ResourceDetails

SetEbsVolume sets the EbsVolume field's value.

func (*ResourceDetails) SetEc2AutoScalingGroup

func (s *ResourceDetails) SetEc2AutoScalingGroup(v *Ec2AutoScalingGroup) *ResourceDetails

SetEc2AutoScalingGroup sets the Ec2AutoScalingGroup field's value.

func (*ResourceDetails) SetEc2Instance

func (s *ResourceDetails) SetEc2Instance(v *Ec2Instance) *ResourceDetails

SetEc2Instance sets the Ec2Instance field's value.

func (*ResourceDetails) SetEc2InstanceSavingsPlans

func (s *ResourceDetails) SetEc2InstanceSavingsPlans(v *Ec2InstanceSavingsPlans) *ResourceDetails

SetEc2InstanceSavingsPlans sets the Ec2InstanceSavingsPlans field's value.

func (*ResourceDetails) SetEc2ReservedInstances

func (s *ResourceDetails) SetEc2ReservedInstances(v *Ec2ReservedInstances) *ResourceDetails

SetEc2ReservedInstances sets the Ec2ReservedInstances field's value.

func (*ResourceDetails) SetEcsService

func (s *ResourceDetails) SetEcsService(v *EcsService) *ResourceDetails

SetEcsService sets the EcsService field's value.

func (*ResourceDetails) SetElastiCacheReservedInstances

func (s *ResourceDetails) SetElastiCacheReservedInstances(v *ElastiCacheReservedInstances) *ResourceDetails

SetElastiCacheReservedInstances sets the ElastiCacheReservedInstances field's value.

func (*ResourceDetails) SetLambdaFunction

func (s *ResourceDetails) SetLambdaFunction(v *LambdaFunction) *ResourceDetails

SetLambdaFunction sets the LambdaFunction field's value.

func (*ResourceDetails) SetOpenSearchReservedInstances

func (s *ResourceDetails) SetOpenSearchReservedInstances(v *OpenSearchReservedInstances) *ResourceDetails

SetOpenSearchReservedInstances sets the OpenSearchReservedInstances field's value.

func (*ResourceDetails) SetRdsReservedInstances

func (s *ResourceDetails) SetRdsReservedInstances(v *RdsReservedInstances) *ResourceDetails

SetRdsReservedInstances sets the RdsReservedInstances field's value.

func (*ResourceDetails) SetRedshiftReservedInstances

func (s *ResourceDetails) SetRedshiftReservedInstances(v *RedshiftReservedInstances) *ResourceDetails

SetRedshiftReservedInstances sets the RedshiftReservedInstances field's value.

func (*ResourceDetails) SetSageMakerSavingsPlans

func (s *ResourceDetails) SetSageMakerSavingsPlans(v *SageMakerSavingsPlans) *ResourceDetails

SetSageMakerSavingsPlans sets the SageMakerSavingsPlans field's value.

func (ResourceDetails) String

func (s ResourceDetails) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ResourceNotFoundException

type ResourceNotFoundException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`

	// The identifier of the resource that was not found.
	//
	// ResourceId is a required field
	ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The specified Amazon Resource Name (ARN) in the request doesn't exist.

func (*ResourceNotFoundException) Code

Code returns the exception type name.

func (*ResourceNotFoundException) Error

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ResourceNotFoundException) Message

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode

func (s *ResourceNotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ResourceNotFoundException) String

func (s ResourceNotFoundException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ResourcePricing

type ResourcePricing struct {

	// The savings estimate incorporating all discounts with Amazon Web Services,
	// such as Reserved Instances and Savings Plans.
	EstimatedCostAfterDiscounts *float64 `locationName:"estimatedCostAfterDiscounts" type:"double"`

	// The savings estimate using Amazon Web Services public pricing without incorporating
	// any discounts.
	EstimatedCostBeforeDiscounts *float64 `locationName:"estimatedCostBeforeDiscounts" type:"double"`

	// The estimated discounts for a recommendation.
	EstimatedDiscounts *EstimatedDiscounts `locationName:"estimatedDiscounts" type:"structure"`

	// The estimated net unused amortized commitment for the recommendation.
	EstimatedNetUnusedAmortizedCommitments *float64 `locationName:"estimatedNetUnusedAmortizedCommitments" type:"double"`
	// contains filtered or unexported fields
}

Contains pricing information about the specified resource.

func (ResourcePricing) GoString

func (s ResourcePricing) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ResourcePricing) SetEstimatedCostAfterDiscounts

func (s *ResourcePricing) SetEstimatedCostAfterDiscounts(v float64) *ResourcePricing

SetEstimatedCostAfterDiscounts sets the EstimatedCostAfterDiscounts field's value.

func (*ResourcePricing) SetEstimatedCostBeforeDiscounts

func (s *ResourcePricing) SetEstimatedCostBeforeDiscounts(v float64) *ResourcePricing

SetEstimatedCostBeforeDiscounts sets the EstimatedCostBeforeDiscounts field's value.

func (*ResourcePricing) SetEstimatedDiscounts

func (s *ResourcePricing) SetEstimatedDiscounts(v *EstimatedDiscounts) *ResourcePricing

SetEstimatedDiscounts sets the EstimatedDiscounts field's value.

func (*ResourcePricing) SetEstimatedNetUnusedAmortizedCommitments

func (s *ResourcePricing) SetEstimatedNetUnusedAmortizedCommitments(v float64) *ResourcePricing

SetEstimatedNetUnusedAmortizedCommitments sets the EstimatedNetUnusedAmortizedCommitments field's value.

func (ResourcePricing) String

func (s ResourcePricing) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type SageMakerSavingsPlans

type SageMakerSavingsPlans struct {

	// The SageMaker Savings Plans configuration used for recommendations.
	Configuration *SageMakerSavingsPlansConfiguration `locationName:"configuration" type:"structure"`

	// Cost impact of the Savings Plans purchase recommendation.
	CostCalculation *SavingsPlansCostCalculation `locationName:"costCalculation" type:"structure"`
	// contains filtered or unexported fields
}

The SageMaker Savings Plans recommendation details.

func (SageMakerSavingsPlans) GoString

func (s SageMakerSavingsPlans) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*SageMakerSavingsPlans) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*SageMakerSavingsPlans) SetCostCalculation

SetCostCalculation sets the CostCalculation field's value.

func (SageMakerSavingsPlans) String

func (s SageMakerSavingsPlans) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type SageMakerSavingsPlansConfiguration

type SageMakerSavingsPlansConfiguration struct {

	// The account scope that you want your recommendations for.
	AccountScope *string `locationName:"accountScope" type:"string"`

	// The hourly commitment for the Savings Plans type.
	HourlyCommitment *string `locationName:"hourlyCommitment" type:"string"`

	// The payment option for the commitment.
	PaymentOption *string `locationName:"paymentOption" type:"string"`

	// The Savings Plans recommendation term in years.
	Term *string `locationName:"term" type:"string"`
	// contains filtered or unexported fields
}

The SageMaker Savings Plans configuration used for recommendations.

func (SageMakerSavingsPlansConfiguration) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*SageMakerSavingsPlansConfiguration) SetAccountScope

SetAccountScope sets the AccountScope field's value.

func (*SageMakerSavingsPlansConfiguration) SetHourlyCommitment

SetHourlyCommitment sets the HourlyCommitment field's value.

func (*SageMakerSavingsPlansConfiguration) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*SageMakerSavingsPlansConfiguration) SetTerm

SetTerm sets the Term field's value.

func (SageMakerSavingsPlansConfiguration) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type SavingsPlansCostCalculation

type SavingsPlansCostCalculation struct {

	// Pricing details of the purchase recommendation.
	Pricing *SavingsPlansPricing `locationName:"pricing" type:"structure"`
	// contains filtered or unexported fields
}

Cost impact of the purchase recommendation.

func (SavingsPlansCostCalculation) GoString

func (s SavingsPlansCostCalculation) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*SavingsPlansCostCalculation) SetPricing

SetPricing sets the Pricing field's value.

func (SavingsPlansCostCalculation) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type SavingsPlansPricing

type SavingsPlansPricing struct {

	// Estimated monthly commitment for the Savings Plan.
	EstimatedMonthlyCommitment *float64 `locationName:"estimatedMonthlyCommitment" type:"double"`

	// Estimated On-Demand cost you will pay after buying the Savings Plan.
	EstimatedOnDemandCost *float64 `locationName:"estimatedOnDemandCost" type:"double"`

	// The cost of paying for the recommended Savings Plan monthly.
	MonthlySavingsPlansEligibleCost *float64 `locationName:"monthlySavingsPlansEligibleCost" type:"double"`

	// Estimated savings as a percentage of your overall costs after buying the
	// Savings Plan.
	SavingsPercentage *float64 `locationName:"savingsPercentage" type:"double"`
	// contains filtered or unexported fields
}

Pricing information about a Savings Plan.

func (SavingsPlansPricing) GoString

func (s SavingsPlansPricing) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*SavingsPlansPricing) SetEstimatedMonthlyCommitment

func (s *SavingsPlansPricing) SetEstimatedMonthlyCommitment(v float64) *SavingsPlansPricing

SetEstimatedMonthlyCommitment sets the EstimatedMonthlyCommitment field's value.

func (*SavingsPlansPricing) SetEstimatedOnDemandCost

func (s *SavingsPlansPricing) SetEstimatedOnDemandCost(v float64) *SavingsPlansPricing

SetEstimatedOnDemandCost sets the EstimatedOnDemandCost field's value.

func (*SavingsPlansPricing) SetMonthlySavingsPlansEligibleCost

func (s *SavingsPlansPricing) SetMonthlySavingsPlansEligibleCost(v float64) *SavingsPlansPricing

SetMonthlySavingsPlansEligibleCost sets the MonthlySavingsPlansEligibleCost field's value.

func (*SavingsPlansPricing) SetSavingsPercentage

func (s *SavingsPlansPricing) SetSavingsPercentage(v float64) *SavingsPlansPricing

SetSavingsPercentage sets the SavingsPercentage field's value.

func (SavingsPlansPricing) String

func (s SavingsPlansPricing) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type StorageConfiguration

type StorageConfiguration struct {

	// The storage volume.
	SizeInGb *float64 `locationName:"sizeInGb" type:"double"`

	// The storage type.
	Type *string `locationName:"type" type:"string"`
	// contains filtered or unexported fields
}

The storage configuration used for recommendations.

func (StorageConfiguration) GoString

func (s StorageConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StorageConfiguration) SetSizeInGb

SetSizeInGb sets the SizeInGb field's value.

func (*StorageConfiguration) SetType

SetType sets the Type field's value.

func (StorageConfiguration) String

func (s StorageConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Tag

type Tag struct {

	// The key that's associated with the tag.
	Key *string `locationName:"key" type:"string"`

	// The value that's associated with the tag.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

The tag structure that contains a tag key and value.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Tag) SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ThrottlingException

type ThrottlingException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The request was denied due to request throttling.

func (*ThrottlingException) Code

func (s *ThrottlingException) Code() string

Code returns the exception type name.

func (*ThrottlingException) Error

func (s *ThrottlingException) Error() string

func (ThrottlingException) GoString

func (s ThrottlingException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ThrottlingException) Message

func (s *ThrottlingException) Message() string

Message returns the exception's message.

func (*ThrottlingException) OrigErr

func (s *ThrottlingException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ThrottlingException) RequestID

func (s *ThrottlingException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ThrottlingException) StatusCode

func (s *ThrottlingException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ThrottlingException) String

func (s ThrottlingException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdateEnrollmentStatusInput

type UpdateEnrollmentStatusInput struct {

	// Indicates whether to enroll member accounts of the organization if the account
	// is the management account.
	IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"`

	// Sets the account status.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"EnrollmentStatus"`
	// contains filtered or unexported fields
}

func (UpdateEnrollmentStatusInput) GoString

func (s UpdateEnrollmentStatusInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateEnrollmentStatusInput) SetIncludeMemberAccounts

func (s *UpdateEnrollmentStatusInput) SetIncludeMemberAccounts(v bool) *UpdateEnrollmentStatusInput

SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value.

func (*UpdateEnrollmentStatusInput) SetStatus

SetStatus sets the Status field's value.

func (UpdateEnrollmentStatusInput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateEnrollmentStatusInput) Validate

func (s *UpdateEnrollmentStatusInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateEnrollmentStatusOutput

type UpdateEnrollmentStatusOutput struct {

	// The enrollment status of the account.
	Status *string `locationName:"status" type:"string"`
	// contains filtered or unexported fields
}

func (UpdateEnrollmentStatusOutput) GoString

func (s UpdateEnrollmentStatusOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateEnrollmentStatusOutput) SetStatus

SetStatus sets the Status field's value.

func (UpdateEnrollmentStatusOutput) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdatePreferencesInput

type UpdatePreferencesInput struct {

	// Sets the "member account discount visibility" preference.
	MemberAccountDiscountVisibility *string `locationName:"memberAccountDiscountVisibility" type:"string" enum:"MemberAccountDiscountVisibility"`

	// Sets the "savings estimation mode" preference.
	SavingsEstimationMode *string `locationName:"savingsEstimationMode" type:"string" enum:"SavingsEstimationMode"`
	// contains filtered or unexported fields
}

func (UpdatePreferencesInput) GoString

func (s UpdatePreferencesInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdatePreferencesInput) SetMemberAccountDiscountVisibility

func (s *UpdatePreferencesInput) SetMemberAccountDiscountVisibility(v string) *UpdatePreferencesInput

SetMemberAccountDiscountVisibility sets the MemberAccountDiscountVisibility field's value.

func (*UpdatePreferencesInput) SetSavingsEstimationMode

func (s *UpdatePreferencesInput) SetSavingsEstimationMode(v string) *UpdatePreferencesInput

SetSavingsEstimationMode sets the SavingsEstimationMode field's value.

func (UpdatePreferencesInput) String

func (s UpdatePreferencesInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdatePreferencesOutput

type UpdatePreferencesOutput struct {

	// Shows the status of the "member account discount visibility" preference.
	MemberAccountDiscountVisibility *string `locationName:"memberAccountDiscountVisibility" type:"string" enum:"MemberAccountDiscountVisibility"`

	// Shows the status of the "savings estimation mode" preference.
	SavingsEstimationMode *string `locationName:"savingsEstimationMode" type:"string" enum:"SavingsEstimationMode"`
	// contains filtered or unexported fields
}

func (UpdatePreferencesOutput) GoString

func (s UpdatePreferencesOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdatePreferencesOutput) SetMemberAccountDiscountVisibility

func (s *UpdatePreferencesOutput) SetMemberAccountDiscountVisibility(v string) *UpdatePreferencesOutput

SetMemberAccountDiscountVisibility sets the MemberAccountDiscountVisibility field's value.

func (*UpdatePreferencesOutput) SetSavingsEstimationMode

func (s *UpdatePreferencesOutput) SetSavingsEstimationMode(v string) *UpdatePreferencesOutput

SetSavingsEstimationMode sets the SavingsEstimationMode field's value.

func (UpdatePreferencesOutput) String

func (s UpdatePreferencesOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Usage

type Usage struct {

	// The operation value.
	Operation *string `locationName:"operation" type:"string"`

	// The product code.
	ProductCode *string `locationName:"productCode" type:"string"`

	// The usage unit.
	Unit *string `locationName:"unit" type:"string"`

	// The usage amount.
	UsageAmount *float64 `locationName:"usageAmount" type:"double"`

	// The usage type.
	UsageType *string `locationName:"usageType" type:"string"`
	// contains filtered or unexported fields
}

Details about the usage.

func (Usage) GoString

func (s Usage) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Usage) SetOperation

func (s *Usage) SetOperation(v string) *Usage

SetOperation sets the Operation field's value.

func (*Usage) SetProductCode

func (s *Usage) SetProductCode(v string) *Usage

SetProductCode sets the ProductCode field's value.

func (*Usage) SetUnit

func (s *Usage) SetUnit(v string) *Usage

SetUnit sets the Unit field's value.

func (*Usage) SetUsageAmount

func (s *Usage) SetUsageAmount(v float64) *Usage

SetUsageAmount sets the UsageAmount field's value.

func (*Usage) SetUsageType

func (s *Usage) SetUsageType(v string) *Usage

SetUsageType sets the UsageType field's value.

func (Usage) String

func (s Usage) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ValidationException

type ValidationException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	// The list of fields that are invalid.
	Fields []*ValidationExceptionDetail `locationName:"fields" type:"list"`

	Message_ *string `locationName:"message" type:"string"`

	// The reason for the validation exception.
	Reason *string `locationName:"reason" type:"string" enum:"ValidationExceptionReason"`
	// contains filtered or unexported fields
}

The input fails to satisfy the constraints specified by an Amazon Web Services service.

func (*ValidationException) Code

func (s *ValidationException) Code() string

Code returns the exception type name.

func (*ValidationException) Error

func (s *ValidationException) Error() string

func (ValidationException) GoString

func (s ValidationException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationException) Message

func (s *ValidationException) Message() string

Message returns the exception's message.

func (*ValidationException) OrigErr

func (s *ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ValidationException) RequestID

func (s *ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ValidationException) StatusCode

func (s *ValidationException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ValidationException) String

func (s ValidationException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ValidationExceptionDetail

type ValidationExceptionDetail struct {

	// The field name where the invalid entry was detected.
	//
	// FieldName is a required field
	FieldName *string `locationName:"fieldName" type:"string" required:"true"`

	// A message with the reason for the validation exception error.
	//
	// Message is a required field
	Message *string `locationName:"message" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The input failed to meet the constraints specified by the Amazon Web Services service in a specified field.

func (ValidationExceptionDetail) GoString

func (s ValidationExceptionDetail) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationExceptionDetail) SetFieldName

SetFieldName sets the FieldName field's value.

func (*ValidationExceptionDetail) SetMessage

SetMessage sets the Message field's value.

func (ValidationExceptionDetail) String

func (s ValidationExceptionDetail) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

Directories

Path Synopsis
Package costoptimizationhubiface provides an interface to enable mocking the Cost Optimization Hub service client for testing your code.
Package costoptimizationhubiface provides an interface to enable mocking the Cost Optimization Hub service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL