...
AWS SDK for Go API Reference
We announced the upcoming end-of-support for AWS SDK for Go (v1). We recommend that you migrate to AWS SDK for Go v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
import "github.com/aws/aws-sdk-go/service/costoptimizationhub"
Overview
Constants

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

The stub package, costoptimizationhubiface, can be used to provide alternative implementations of service clients, such as mocking the client for testing.

Types ▾

type CostOptimizationHub
func New(p client.ConfigProvider, cfgs ...*aws.Config) *CostOptimizationHub
func (c *CostOptimizationHub) GetPreferences(input *GetPreferencesInput) (*GetPreferencesOutput, error)
func (c *CostOptimizationHub) GetPreferencesRequest(input *GetPreferencesInput) (req *request.Request, output *GetPreferencesOutput)
func (c *CostOptimizationHub) GetPreferencesWithContext(ctx aws.Context, input *GetPreferencesInput, opts ...request.Option) (*GetPreferencesOutput, error)
func (c *CostOptimizationHub) GetRecommendation(input *GetRecommendationInput) (*GetRecommendationOutput, error)
func (c *CostOptimizationHub) GetRecommendationRequest(input *GetRecommendationInput) (req *request.Request, output *GetRecommendationOutput)
func (c *CostOptimizationHub) GetRecommendationWithContext(ctx aws.Context, input *GetRecommendationInput, opts ...request.Option) (*GetRecommendationOutput, error)
func (c *CostOptimizationHub) ListEnrollmentStatuses(input *ListEnrollmentStatusesInput) (*ListEnrollmentStatusesOutput, error)
func (c *CostOptimizationHub) ListEnrollmentStatusesPages(input *ListEnrollmentStatusesInput, fn func(*ListEnrollmentStatusesOutput, bool) bool) error
func (c *CostOptimizationHub) ListEnrollmentStatusesPagesWithContext(ctx aws.Context, input *ListEnrollmentStatusesInput, fn func(*ListEnrollmentStatusesOutput, bool) bool, opts ...request.Option) error
func (c *CostOptimizationHub) ListEnrollmentStatusesRequest(input *ListEnrollmentStatusesInput) (req *request.Request, output *ListEnrollmentStatusesOutput)
func (c *CostOptimizationHub) ListEnrollmentStatusesWithContext(ctx aws.Context, input *ListEnrollmentStatusesInput, opts ...request.Option) (*ListEnrollmentStatusesOutput, error)
func (c *CostOptimizationHub) ListRecommendationSummaries(input *ListRecommendationSummariesInput) (*ListRecommendationSummariesOutput, error)
func (c *CostOptimizationHub) ListRecommendationSummariesPages(input *ListRecommendationSummariesInput, fn func(*ListRecommendationSummariesOutput, bool) bool) error
func (c *CostOptimizationHub) ListRecommendationSummariesPagesWithContext(ctx aws.Context, input *ListRecommendationSummariesInput, fn func(*ListRecommendationSummariesOutput, bool) bool, opts ...request.Option) error
func (c *CostOptimizationHub) ListRecommendationSummariesRequest(input *ListRecommendationSummariesInput) (req *request.Request, output *ListRecommendationSummariesOutput)
func (c *CostOptimizationHub) ListRecommendationSummariesWithContext(ctx aws.Context, input *ListRecommendationSummariesInput, opts ...request.Option) (*ListRecommendationSummariesOutput, error)
func (c *CostOptimizationHub) ListRecommendations(input *ListRecommendationsInput) (*ListRecommendationsOutput, error)
func (c *CostOptimizationHub) ListRecommendationsPages(input *ListRecommendationsInput, fn func(*ListRecommendationsOutput, bool) bool) error
func (c *CostOptimizationHub) ListRecommendationsPagesWithContext(ctx aws.Context, input *ListRecommendationsInput, fn func(*ListRecommendationsOutput, bool) bool, opts ...request.Option) error
func (c *CostOptimizationHub) ListRecommendationsRequest(input *ListRecommendationsInput) (req *request.Request, output *ListRecommendationsOutput)
func (c *CostOptimizationHub) ListRecommendationsWithContext(ctx aws.Context, input *ListRecommendationsInput, opts ...request.Option) (*ListRecommendationsOutput, error)
func (c *CostOptimizationHub) UpdateEnrollmentStatus(input *UpdateEnrollmentStatusInput) (*UpdateEnrollmentStatusOutput, error)
func (c *CostOptimizationHub) UpdateEnrollmentStatusRequest(input *UpdateEnrollmentStatusInput) (req *request.Request, output *UpdateEnrollmentStatusOutput)
func (c *CostOptimizationHub) UpdateEnrollmentStatusWithContext(ctx aws.Context, input *UpdateEnrollmentStatusInput, opts ...request.Option) (*UpdateEnrollmentStatusOutput, error)
func (c *CostOptimizationHub) UpdatePreferences(input *UpdatePreferencesInput) (*UpdatePreferencesOutput, error)
func (c *CostOptimizationHub) UpdatePreferencesRequest(input *UpdatePreferencesInput) (req *request.Request, output *UpdatePreferencesOutput)
func (c *CostOptimizationHub) UpdatePreferencesWithContext(ctx aws.Context, input *UpdatePreferencesInput, opts ...request.Option) (*UpdatePreferencesOutput, error)
func ActionType_Values() []string
func EnrollmentStatus_Values() []string
func ImplementationEffort_Values() []string
func MemberAccountDiscountVisibility_Values() []string
func Order_Values() []string
func ResourceType_Values() []string
func SavingsEstimationMode_Values() []string
func Source_Values() []string
func ValidationExceptionReason_Values() []string
type AccessDeniedException
type AccountEnrollmentStatus
type BlockStoragePerformanceConfiguration
type ComputeConfiguration
type ComputeSavingsPlans
type ComputeSavingsPlansConfiguration
type DbInstanceConfiguration
type EbsVolume
type EbsVolumeConfiguration
type Ec2AutoScalingGroup
type Ec2AutoScalingGroupConfiguration
type Ec2Instance
type Ec2InstanceConfiguration
type Ec2InstanceSavingsPlans
type Ec2InstanceSavingsPlansConfiguration
type Ec2ReservedInstances
type Ec2ReservedInstancesConfiguration
type EcsService
type EcsServiceConfiguration
type ElastiCacheReservedInstances
type ElastiCacheReservedInstancesConfiguration
type EstimatedDiscounts
type Filter
type GetPreferencesInput
type GetPreferencesOutput
type GetRecommendationInput
type GetRecommendationOutput
type InstanceConfiguration
type InternalServerException
type LambdaFunction
type LambdaFunctionConfiguration
type ListEnrollmentStatusesInput
type ListEnrollmentStatusesOutput
type ListRecommendationSummariesInput
type ListRecommendationSummariesOutput
type ListRecommendationsInput
type ListRecommendationsOutput
type OpenSearchReservedInstances
type OpenSearchReservedInstancesConfiguration
type OrderBy
type RdsDbInstance
type RdsDbInstanceConfiguration
type RdsDbInstanceStorage
type RdsDbInstanceStorageConfiguration
type RdsReservedInstances
type RdsReservedInstancesConfiguration
type Recommendation
type RecommendationSummary
type RedshiftReservedInstances
type RedshiftReservedInstancesConfiguration
type ReservedInstancesCostCalculation
type ReservedInstancesPricing
type ResourceCostCalculation
type ResourceDetails
type ResourceNotFoundException
type ResourcePricing
type SageMakerSavingsPlans
type SageMakerSavingsPlansConfiguration
type SavingsPlansCostCalculation
type SavingsPlansPricing
type StorageConfiguration
type Tag
type ThrottlingException
type UpdateEnrollmentStatusInput
type UpdateEnrollmentStatusOutput
type UpdatePreferencesInput
type UpdatePreferencesOutput
type Usage
type ValidationException
type ValidationExceptionDetail

Constants ▾

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"
)
const (
    // EnrollmentStatusActive is a EnrollmentStatus enum value
    EnrollmentStatusActive = "Active"

    // EnrollmentStatusInactive is a EnrollmentStatus enum value
    EnrollmentStatusInactive = "Inactive"
)
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"
)
const (
    // MemberAccountDiscountVisibilityAll is a MemberAccountDiscountVisibility enum value
    MemberAccountDiscountVisibilityAll = "All"

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

    // OrderDesc is a Order enum value
    OrderDesc = "Desc"
)
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"

    // ResourceTypeRdsDbInstanceStorage is a ResourceType enum value
    ResourceTypeRdsDbInstanceStorage = "RdsDbInstanceStorage"

    // ResourceTypeRdsDbInstance is a ResourceType enum value
    ResourceTypeRdsDbInstance = "RdsDbInstance"
)
const (
    // SavingsEstimationModeBeforeDiscounts is a SavingsEstimationMode enum value
    SavingsEstimationModeBeforeDiscounts = "BeforeDiscounts"

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

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

    // ValidationExceptionReasonOther is a ValidationExceptionReason enum value
    ValidationExceptionReasonOther = "Other"
)
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"
)
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

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

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

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

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

func (s *AccountEnrollmentStatus) SetStatus(v string) *AccountEnrollmentStatus

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

func (s BlockStoragePerformanceConfiguration) 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 (*BlockStoragePerformanceConfiguration) SetIops

func (s *BlockStoragePerformanceConfiguration) SetIops(v float64) *BlockStoragePerformanceConfiguration

SetIops sets the Iops field's value.

func (*BlockStoragePerformanceConfiguration) SetThroughput

func (s *BlockStoragePerformanceConfiguration) SetThroughput(v float64) *BlockStoragePerformanceConfiguration

SetThroughput sets the Throughput field's value.

func (BlockStoragePerformanceConfiguration) String

func (s BlockStoragePerformanceConfiguration) 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 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

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

SetPlatform sets the Platform field's value.

func (*ComputeConfiguration) SetVCpu

func (s *ComputeConfiguration) SetVCpu(v float64) *ComputeConfiguration

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

func (s *ComputeSavingsPlans) SetConfiguration(v *ComputeSavingsPlansConfiguration) *ComputeSavingsPlans

SetConfiguration sets the Configuration field's value.

func (*ComputeSavingsPlans) SetCostCalculation

func (s *ComputeSavingsPlans) SetCostCalculation(v *SavingsPlansCostCalculation) *ComputeSavingsPlans

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

func (s ComputeSavingsPlansConfiguration) 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 (*ComputeSavingsPlansConfiguration) SetAccountScope

func (s *ComputeSavingsPlansConfiguration) SetAccountScope(v string) *ComputeSavingsPlansConfiguration

SetAccountScope sets the AccountScope field's value.

func (*ComputeSavingsPlansConfiguration) SetHourlyCommitment

func (s *ComputeSavingsPlansConfiguration) SetHourlyCommitment(v string) *ComputeSavingsPlansConfiguration

SetHourlyCommitment sets the HourlyCommitment field's value.

func (*ComputeSavingsPlansConfiguration) SetPaymentOption

func (s *ComputeSavingsPlansConfiguration) SetPaymentOption(v string) *ComputeSavingsPlansConfiguration

SetPaymentOption sets the PaymentOption field's value.

func (*ComputeSavingsPlansConfiguration) SetTerm

func (s *ComputeSavingsPlansConfiguration) SetTerm(v string) *ComputeSavingsPlansConfiguration

SetTerm sets the Term field's value.

func (ComputeSavingsPlansConfiguration) String

func (s ComputeSavingsPlansConfiguration) 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 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

func New(p client.ConfigProvider, cfgs ...*aws.Config) *CostOptimizationHub

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

func (c *CostOptimizationHub) GetRecommendation(input *GetRecommendationInput) (*GetRecommendationOutput, error)

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

func (c *CostOptimizationHub) ListEnrollmentStatuses(input *ListEnrollmentStatusesInput) (*ListEnrollmentStatusesOutput, error)

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

func (c *CostOptimizationHub) ListRecommendationSummaries(input *ListRecommendationSummariesInput) (*ListRecommendationSummariesOutput, error)

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

func (c *CostOptimizationHub) ListRecommendations(input *ListRecommendationsInput) (*ListRecommendationsOutput, error)

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

func (c *CostOptimizationHub) UpdateEnrollmentStatus(input *UpdateEnrollmentStatusInput) (*UpdateEnrollmentStatusOutput, error)

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

func (c *CostOptimizationHub) UpdatePreferences(input *UpdatePreferencesInput) (*UpdatePreferencesOutput, error)

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 DbInstanceConfiguration

type DbInstanceConfiguration struct {

    // The DB instance class of the DB instance.
    DbInstanceClass *string `locationName:"dbInstanceClass" type:"string"`
    // contains filtered or unexported fields
}

The DB instance configuration used for recommendations.

func (DbInstanceConfiguration) GoString

func (s DbInstanceConfiguration) 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 (*DbInstanceConfiguration) SetDbInstanceClass

func (s *DbInstanceConfiguration) SetDbInstanceClass(v string) *DbInstanceConfiguration

SetDbInstanceClass sets the DbInstanceClass field's value.

func (DbInstanceConfiguration) String

func (s DbInstanceConfiguration) 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 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

func (s *EbsVolumeConfiguration) SetPerformance(v *BlockStoragePerformanceConfiguration) *EbsVolumeConfiguration

SetPerformance sets the Performance field's value.

func (*EbsVolumeConfiguration) SetStorage

func (s *EbsVolumeConfiguration) SetStorage(v *StorageConfiguration) *EbsVolumeConfiguration

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

func (s *Ec2AutoScalingGroup) SetConfiguration(v *Ec2AutoScalingGroupConfiguration) *Ec2AutoScalingGroup

SetConfiguration sets the Configuration field's value.

func (*Ec2AutoScalingGroup) SetCostCalculation

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

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

func (s Ec2AutoScalingGroupConfiguration) 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 (*Ec2AutoScalingGroupConfiguration) SetInstance

func (s *Ec2AutoScalingGroupConfiguration) SetInstance(v *InstanceConfiguration) *Ec2AutoScalingGroupConfiguration

SetInstance sets the Instance field's value.

func (Ec2AutoScalingGroupConfiguration) String

func (s Ec2AutoScalingGroupConfiguration) 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 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

func (s *Ec2InstanceConfiguration) SetInstance(v *InstanceConfiguration) *Ec2InstanceConfiguration

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

func (s *Ec2InstanceSavingsPlans) SetConfiguration(v *Ec2InstanceSavingsPlansConfiguration) *Ec2InstanceSavingsPlans

SetConfiguration sets the Configuration field's value.

func (*Ec2InstanceSavingsPlans) SetCostCalculation

func (s *Ec2InstanceSavingsPlans) SetCostCalculation(v *SavingsPlansCostCalculation) *Ec2InstanceSavingsPlans

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

func (s Ec2InstanceSavingsPlansConfiguration) 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 (*Ec2InstanceSavingsPlansConfiguration) SetAccountScope

func (s *Ec2InstanceSavingsPlansConfiguration) SetAccountScope(v string) *Ec2InstanceSavingsPlansConfiguration

SetAccountScope sets the AccountScope field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetHourlyCommitment

func (s *Ec2InstanceSavingsPlansConfiguration) SetHourlyCommitment(v string) *Ec2InstanceSavingsPlansConfiguration

SetHourlyCommitment sets the HourlyCommitment field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetInstanceFamily

func (s *Ec2InstanceSavingsPlansConfiguration) SetInstanceFamily(v string) *Ec2InstanceSavingsPlansConfiguration

SetInstanceFamily sets the InstanceFamily field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetPaymentOption

func (s *Ec2InstanceSavingsPlansConfiguration) SetPaymentOption(v string) *Ec2InstanceSavingsPlansConfiguration

SetPaymentOption sets the PaymentOption field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetSavingsPlansRegion

func (s *Ec2InstanceSavingsPlansConfiguration) SetSavingsPlansRegion(v string) *Ec2InstanceSavingsPlansConfiguration

SetSavingsPlansRegion sets the SavingsPlansRegion field's value.

func (*Ec2InstanceSavingsPlansConfiguration) SetTerm

func (s *Ec2InstanceSavingsPlansConfiguration) SetTerm(v string) *Ec2InstanceSavingsPlansConfiguration

SetTerm sets the Term field's value.

func (Ec2InstanceSavingsPlansConfiguration) String

func (s Ec2InstanceSavingsPlansConfiguration) 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 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

func (s *Ec2ReservedInstances) SetConfiguration(v *Ec2ReservedInstancesConfiguration) *Ec2ReservedInstances

SetConfiguration sets the Configuration field's value.

func (*Ec2ReservedInstances) SetCostCalculation

func (s *Ec2ReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *Ec2ReservedInstances

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

func (s Ec2ReservedInstancesConfiguration) 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 (*Ec2ReservedInstancesConfiguration) SetAccountScope

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

SetAccountScope sets the AccountScope field's value.

func (*Ec2ReservedInstancesConfiguration) SetCurrentGeneration

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

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*Ec2ReservedInstancesConfiguration) SetInstanceFamily

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

SetInstanceFamily sets the InstanceFamily field's value.

func (*Ec2ReservedInstancesConfiguration) SetInstanceType

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

SetInstanceType sets the InstanceType field's value.

func (*Ec2ReservedInstancesConfiguration) SetMonthlyRecurringCost

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

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*Ec2ReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

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

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

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

SetOfferingClass sets the OfferingClass field's value.

func (*Ec2ReservedInstancesConfiguration) SetPaymentOption

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

SetPaymentOption sets the PaymentOption field's value.

func (*Ec2ReservedInstancesConfiguration) SetPlatform

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

SetPlatform sets the Platform field's value.

func (*Ec2ReservedInstancesConfiguration) SetReservedInstancesRegion

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

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*Ec2ReservedInstancesConfiguration) SetService

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

SetService sets the Service field's value.

func (*Ec2ReservedInstancesConfiguration) SetSizeFlexEligible

func (s *Ec2ReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *Ec2ReservedInstancesConfiguration

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*Ec2ReservedInstancesConfiguration) SetTenancy

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

SetTenancy sets the Tenancy field's value.

func (*Ec2ReservedInstancesConfiguration) SetTerm

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

SetTerm sets the Term field's value.

func (*Ec2ReservedInstancesConfiguration) SetUpfrontCost

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

SetUpfrontCost sets the UpfrontCost field's value.

func (Ec2ReservedInstancesConfiguration) String

func (s Ec2ReservedInstancesConfiguration) 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 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

func (s *EcsServiceConfiguration) SetCompute(v *ComputeConfiguration) *EcsServiceConfiguration

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

func (s *ElastiCacheReservedInstances) SetConfiguration(v *ElastiCacheReservedInstancesConfiguration) *ElastiCacheReservedInstances

SetConfiguration sets the Configuration field's value.

func (*ElastiCacheReservedInstances) SetCostCalculation

func (s *ElastiCacheReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *ElastiCacheReservedInstances

SetCostCalculation sets the CostCalculation field's value.

func (ElastiCacheReservedInstances) String

func (s ElastiCacheReservedInstances) 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 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

func (s ElastiCacheReservedInstancesConfiguration) 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 (*ElastiCacheReservedInstancesConfiguration) SetAccountScope

func (s *ElastiCacheReservedInstancesConfiguration) SetAccountScope(v string) *ElastiCacheReservedInstancesConfiguration

SetAccountScope sets the AccountScope field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetCurrentGeneration

func (s *ElastiCacheReservedInstancesConfiguration) SetCurrentGeneration(v string) *ElastiCacheReservedInstancesConfiguration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetInstanceFamily

func (s *ElastiCacheReservedInstancesConfiguration) SetInstanceFamily(v string) *ElastiCacheReservedInstancesConfiguration

SetInstanceFamily sets the InstanceFamily field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetInstanceType

func (s *ElastiCacheReservedInstancesConfiguration) SetInstanceType(v string) *ElastiCacheReservedInstancesConfiguration

SetInstanceType sets the InstanceType field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetMonthlyRecurringCost

func (s *ElastiCacheReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *ElastiCacheReservedInstancesConfiguration

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

func (s *ElastiCacheReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *ElastiCacheReservedInstancesConfiguration

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

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

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetPaymentOption

func (s *ElastiCacheReservedInstancesConfiguration) SetPaymentOption(v string) *ElastiCacheReservedInstancesConfiguration

SetPaymentOption sets the PaymentOption field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetReservedInstancesRegion

func (s *ElastiCacheReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *ElastiCacheReservedInstancesConfiguration

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetService

func (s *ElastiCacheReservedInstancesConfiguration) SetService(v string) *ElastiCacheReservedInstancesConfiguration

SetService sets the Service field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetSizeFlexEligible

func (s *ElastiCacheReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *ElastiCacheReservedInstancesConfiguration

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetTerm

func (s *ElastiCacheReservedInstancesConfiguration) SetTerm(v string) *ElastiCacheReservedInstancesConfiguration

SetTerm sets the Term field's value.

func (*ElastiCacheReservedInstancesConfiguration) SetUpfrontCost

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

SetUpfrontCost sets the UpfrontCost field's value.

func (ElastiCacheReservedInstancesConfiguration) String

func (s ElastiCacheReservedInstancesConfiguration) 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 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 current resource. For Reserved Instances
    // and Savings Plans, it refers to the cost for eligible usage.
    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

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

SetAccountId sets the AccountId field's value.

func (*GetRecommendationOutput) SetActionType

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

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

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

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

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

SetRegion sets the Region field's value.

func (*GetRecommendationOutput) SetResourceArn

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

SetResourceArn sets the ResourceArn field's value.

func (*GetRecommendationOutput) SetResourceId

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

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

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

SetSource sets the Source field's value.

func (*GetRecommendationOutput) SetTags

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

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

func (s *InstanceConfiguration) SetType(v string) *InstanceConfiguration

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

func (s *LambdaFunction) SetConfiguration(v *LambdaFunctionConfiguration) *LambdaFunction

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

func (s *LambdaFunctionConfiguration) SetCompute(v *ComputeConfiguration) *LambdaFunctionConfiguration

SetCompute sets the Compute field's value.

func (LambdaFunctionConfiguration) String

func (s LambdaFunctionConfiguration) 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 ListEnrollmentStatusesInput

type ListEnrollmentStatusesInput struct {

    // The account ID of a member account 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

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

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

func (s *ListEnrollmentStatusesInput) SetMaxResults(v int64) *ListEnrollmentStatusesInput

SetMaxResults sets the MaxResults field's value.

func (*ListEnrollmentStatusesInput) SetNextToken

func (s *ListEnrollmentStatusesInput) SetNextToken(v string) *ListEnrollmentStatusesInput

SetNextToken sets the NextToken field's value.

func (ListEnrollmentStatusesInput) String

func (s ListEnrollmentStatusesInput) 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 ListEnrollmentStatusesOutput

type ListEnrollmentStatusesOutput struct {

    // The enrollment status of all member accounts in the organization if the account
    // is the management account.
    IncludeMemberAccounts *bool `locationName:"includeMemberAccounts" type:"boolean"`

    // The enrollment status of a specific account ID, including creation and last
    // updated timestamps.
    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) SetIncludeMemberAccounts

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

SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value.

func (*ListEnrollmentStatusesOutput) SetItems

func (s *ListEnrollmentStatusesOutput) SetItems(v []*AccountEnrollmentStatus) *ListEnrollmentStatusesOutput

SetItems sets the Items field's value.

func (*ListEnrollmentStatusesOutput) SetNextToken

func (s *ListEnrollmentStatusesOutput) SetNextToken(v string) *ListEnrollmentStatusesOutput

SetNextToken sets the NextToken field's value.

func (ListEnrollmentStatusesOutput) String

func (s ListEnrollmentStatusesOutput) 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 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

func (s ListRecommendationSummariesInput) 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 (*ListRecommendationSummariesInput) SetFilter

func (s *ListRecommendationSummariesInput) SetFilter(v *Filter) *ListRecommendationSummariesInput

SetFilter sets the Filter field's value.

func (*ListRecommendationSummariesInput) SetGroupBy

func (s *ListRecommendationSummariesInput) SetGroupBy(v string) *ListRecommendationSummariesInput

SetGroupBy sets the GroupBy field's value.

func (*ListRecommendationSummariesInput) SetMaxResults

func (s *ListRecommendationSummariesInput) SetMaxResults(v int64) *ListRecommendationSummariesInput

SetMaxResults sets the MaxResults field's value.

func (*ListRecommendationSummariesInput) SetNextToken

func (s *ListRecommendationSummariesInput) SetNextToken(v string) *ListRecommendationSummariesInput

SetNextToken sets the NextToken field's value.

func (ListRecommendationSummariesInput) String

func (s ListRecommendationSummariesInput) 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 (*ListRecommendationSummariesInput) Validate

func (s *ListRecommendationSummariesInput) Validate() error

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

func (s ListRecommendationSummariesOutput) 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 (*ListRecommendationSummariesOutput) SetCurrencyCode

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

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

func (s *ListRecommendationSummariesOutput) SetGroupBy(v string) *ListRecommendationSummariesOutput

SetGroupBy sets the GroupBy field's value.

func (*ListRecommendationSummariesOutput) SetItems

func (s *ListRecommendationSummariesOutput) SetItems(v []*RecommendationSummary) *ListRecommendationSummariesOutput

SetItems sets the Items field's value.

func (*ListRecommendationSummariesOutput) SetNextToken

func (s *ListRecommendationSummariesOutput) SetNextToken(v string) *ListRecommendationSummariesOutput

SetNextToken sets the NextToken field's value.

func (ListRecommendationSummariesOutput) String

func (s ListRecommendationSummariesOutput) 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 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

func (s *ListRecommendationsInput) SetFilter(v *Filter) *ListRecommendationsInput

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

func (s *ListRecommendationsInput) SetMaxResults(v int64) *ListRecommendationsInput

SetMaxResults sets the MaxResults field's value.

func (*ListRecommendationsInput) SetNextToken

func (s *ListRecommendationsInput) SetNextToken(v string) *ListRecommendationsInput

SetNextToken sets the NextToken field's value.

func (*ListRecommendationsInput) SetOrderBy

func (s *ListRecommendationsInput) SetOrderBy(v *OrderBy) *ListRecommendationsInput

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

func (s *ListRecommendationsOutput) SetItems(v []*Recommendation) *ListRecommendationsOutput

SetItems sets the Items field's value.

func (*ListRecommendationsOutput) SetNextToken

func (s *ListRecommendationsOutput) SetNextToken(v string) *ListRecommendationsOutput

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

func (s *OpenSearchReservedInstances) SetConfiguration(v *OpenSearchReservedInstancesConfiguration) *OpenSearchReservedInstances

SetConfiguration sets the Configuration field's value.

func (*OpenSearchReservedInstances) SetCostCalculation

func (s *OpenSearchReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *OpenSearchReservedInstances

SetCostCalculation sets the CostCalculation field's value.

func (OpenSearchReservedInstances) String

func (s OpenSearchReservedInstances) 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 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

func (s OpenSearchReservedInstancesConfiguration) 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 (*OpenSearchReservedInstancesConfiguration) SetAccountScope

func (s *OpenSearchReservedInstancesConfiguration) SetAccountScope(v string) *OpenSearchReservedInstancesConfiguration

SetAccountScope sets the AccountScope field's value.

func (*OpenSearchReservedInstancesConfiguration) SetCurrentGeneration

func (s *OpenSearchReservedInstancesConfiguration) SetCurrentGeneration(v string) *OpenSearchReservedInstancesConfiguration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*OpenSearchReservedInstancesConfiguration) SetInstanceType

func (s *OpenSearchReservedInstancesConfiguration) SetInstanceType(v string) *OpenSearchReservedInstancesConfiguration

SetInstanceType sets the InstanceType field's value.

func (*OpenSearchReservedInstancesConfiguration) SetMonthlyRecurringCost

func (s *OpenSearchReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *OpenSearchReservedInstancesConfiguration

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*OpenSearchReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

func (s *OpenSearchReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *OpenSearchReservedInstancesConfiguration

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*OpenSearchReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

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

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*OpenSearchReservedInstancesConfiguration) SetPaymentOption

func (s *OpenSearchReservedInstancesConfiguration) SetPaymentOption(v string) *OpenSearchReservedInstancesConfiguration

SetPaymentOption sets the PaymentOption field's value.

func (*OpenSearchReservedInstancesConfiguration) SetReservedInstancesRegion

func (s *OpenSearchReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *OpenSearchReservedInstancesConfiguration

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*OpenSearchReservedInstancesConfiguration) SetService

func (s *OpenSearchReservedInstancesConfiguration) SetService(v string) *OpenSearchReservedInstancesConfiguration

SetService sets the Service field's value.

func (*OpenSearchReservedInstancesConfiguration) SetSizeFlexEligible

func (s *OpenSearchReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *OpenSearchReservedInstancesConfiguration

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*OpenSearchReservedInstancesConfiguration) SetTerm

func (s *OpenSearchReservedInstancesConfiguration) SetTerm(v string) *OpenSearchReservedInstancesConfiguration

SetTerm sets the Term field's value.

func (*OpenSearchReservedInstancesConfiguration) SetUpfrontCost

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

SetUpfrontCost sets the UpfrontCost field's value.

func (OpenSearchReservedInstancesConfiguration) String

func (s OpenSearchReservedInstancesConfiguration) 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 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 RdsDbInstance

type RdsDbInstance struct {

    // The Amazon RDS DB instance configuration used for recommendations.
    Configuration *RdsDbInstanceConfiguration `locationName:"configuration" type:"structure"`

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

Contains the details of an Amazon RDS DB instance.

func (RdsDbInstance) GoString

func (s RdsDbInstance) 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 (*RdsDbInstance) SetConfiguration

func (s *RdsDbInstance) SetConfiguration(v *RdsDbInstanceConfiguration) *RdsDbInstance

SetConfiguration sets the Configuration field's value.

func (*RdsDbInstance) SetCostCalculation

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

SetCostCalculation sets the CostCalculation field's value.

func (RdsDbInstance) String

func (s RdsDbInstance) 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 RdsDbInstanceConfiguration

type RdsDbInstanceConfiguration struct {

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

The Amazon RDS DB instance configuration used for recommendations.

func (RdsDbInstanceConfiguration) GoString

func (s RdsDbInstanceConfiguration) 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 (*RdsDbInstanceConfiguration) SetInstance

func (s *RdsDbInstanceConfiguration) SetInstance(v *DbInstanceConfiguration) *RdsDbInstanceConfiguration

SetInstance sets the Instance field's value.

func (RdsDbInstanceConfiguration) String

func (s RdsDbInstanceConfiguration) 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 RdsDbInstanceStorage

type RdsDbInstanceStorage struct {

    // The Amazon RDS DB instance storage configuration used for recommendations.
    Configuration *RdsDbInstanceStorageConfiguration `locationName:"configuration" type:"structure"`

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

Contains the details of an Amazon RDS DB instance storage.

func (RdsDbInstanceStorage) GoString

func (s RdsDbInstanceStorage) 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 (*RdsDbInstanceStorage) SetConfiguration

func (s *RdsDbInstanceStorage) SetConfiguration(v *RdsDbInstanceStorageConfiguration) *RdsDbInstanceStorage

SetConfiguration sets the Configuration field's value.

func (*RdsDbInstanceStorage) SetCostCalculation

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

SetCostCalculation sets the CostCalculation field's value.

func (RdsDbInstanceStorage) String

func (s RdsDbInstanceStorage) 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 RdsDbInstanceStorageConfiguration

type RdsDbInstanceStorageConfiguration struct {

    // The new amount of storage in GB to allocate for the DB instance.
    AllocatedStorageInGb *float64 `locationName:"allocatedStorageInGb" type:"double"`

    // The amount of Provisioned IOPS (input/output operations per second) to be
    // initially allocated for the DB instance.
    Iops *float64 `locationName:"iops" type:"double"`

    // The storage throughput for the DB instance.
    StorageThroughput *float64 `locationName:"storageThroughput" type:"double"`

    // The storage type to associate with the DB instance.
    StorageType *string `locationName:"storageType" type:"string"`
    // contains filtered or unexported fields
}

The Amazon RDS DB instance storage configuration used for recommendations.

func (RdsDbInstanceStorageConfiguration) GoString

func (s RdsDbInstanceStorageConfiguration) 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 (*RdsDbInstanceStorageConfiguration) SetAllocatedStorageInGb

func (s *RdsDbInstanceStorageConfiguration) SetAllocatedStorageInGb(v float64) *RdsDbInstanceStorageConfiguration

SetAllocatedStorageInGb sets the AllocatedStorageInGb field's value.

func (*RdsDbInstanceStorageConfiguration) SetIops

func (s *RdsDbInstanceStorageConfiguration) SetIops(v float64) *RdsDbInstanceStorageConfiguration

SetIops sets the Iops field's value.

func (*RdsDbInstanceStorageConfiguration) SetStorageThroughput

func (s *RdsDbInstanceStorageConfiguration) SetStorageThroughput(v float64) *RdsDbInstanceStorageConfiguration

SetStorageThroughput sets the StorageThroughput field's value.

func (*RdsDbInstanceStorageConfiguration) SetStorageType

func (s *RdsDbInstanceStorageConfiguration) SetStorageType(v string) *RdsDbInstanceStorageConfiguration

SetStorageType sets the StorageType field's value.

func (RdsDbInstanceStorageConfiguration) String

func (s RdsDbInstanceStorageConfiguration) 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

func (s *RdsReservedInstances) SetConfiguration(v *RdsReservedInstancesConfiguration) *RdsReservedInstances

SetConfiguration sets the Configuration field's value.

func (*RdsReservedInstances) SetCostCalculation

func (s *RdsReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *RdsReservedInstances

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

func (s RdsReservedInstancesConfiguration) 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 (*RdsReservedInstancesConfiguration) SetAccountScope

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

SetAccountScope sets the AccountScope field's value.

func (*RdsReservedInstancesConfiguration) SetCurrentGeneration

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

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*RdsReservedInstancesConfiguration) SetDatabaseEdition

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

SetDatabaseEdition sets the DatabaseEdition field's value.

func (*RdsReservedInstancesConfiguration) SetDatabaseEngine

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

SetDatabaseEngine sets the DatabaseEngine field's value.

func (*RdsReservedInstancesConfiguration) SetDeploymentOption

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

SetDeploymentOption sets the DeploymentOption field's value.

func (*RdsReservedInstancesConfiguration) SetInstanceFamily

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

SetInstanceFamily sets the InstanceFamily field's value.

func (*RdsReservedInstancesConfiguration) SetInstanceType

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

SetInstanceType sets the InstanceType field's value.

func (*RdsReservedInstancesConfiguration) SetLicenseModel

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

SetLicenseModel sets the LicenseModel field's value.

func (*RdsReservedInstancesConfiguration) SetMonthlyRecurringCost

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

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*RdsReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

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

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

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

SetPaymentOption sets the PaymentOption field's value.

func (*RdsReservedInstancesConfiguration) SetReservedInstancesRegion

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

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*RdsReservedInstancesConfiguration) SetService

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

SetService sets the Service field's value.

func (*RdsReservedInstancesConfiguration) SetSizeFlexEligible

func (s *RdsReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *RdsReservedInstancesConfiguration

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*RdsReservedInstancesConfiguration) SetTerm

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

SetTerm sets the Term field's value.

func (*RdsReservedInstancesConfiguration) SetUpfrontCost

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

SetUpfrontCost sets the UpfrontCost field's value.

func (RdsReservedInstancesConfiguration) String

func (s RdsReservedInstancesConfiguration) 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 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 of the current resource. For Reserved Instances
    // and Savings Plans, it refers to the cost for eligible usage.
    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

func (s *RecommendationSummary) SetGroup(v string) *RecommendationSummary

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

func (s *RedshiftReservedInstances) SetConfiguration(v *RedshiftReservedInstancesConfiguration) *RedshiftReservedInstances

SetConfiguration sets the Configuration field's value.

func (*RedshiftReservedInstances) SetCostCalculation

func (s *RedshiftReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *RedshiftReservedInstances

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

func (s RedshiftReservedInstancesConfiguration) 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 (*RedshiftReservedInstancesConfiguration) SetAccountScope

func (s *RedshiftReservedInstancesConfiguration) SetAccountScope(v string) *RedshiftReservedInstancesConfiguration

SetAccountScope sets the AccountScope field's value.

func (*RedshiftReservedInstancesConfiguration) SetCurrentGeneration

func (s *RedshiftReservedInstancesConfiguration) SetCurrentGeneration(v string) *RedshiftReservedInstancesConfiguration

SetCurrentGeneration sets the CurrentGeneration field's value.

func (*RedshiftReservedInstancesConfiguration) SetInstanceFamily

func (s *RedshiftReservedInstancesConfiguration) SetInstanceFamily(v string) *RedshiftReservedInstancesConfiguration

SetInstanceFamily sets the InstanceFamily field's value.

func (*RedshiftReservedInstancesConfiguration) SetInstanceType

func (s *RedshiftReservedInstancesConfiguration) SetInstanceType(v string) *RedshiftReservedInstancesConfiguration

SetInstanceType sets the InstanceType field's value.

func (*RedshiftReservedInstancesConfiguration) SetMonthlyRecurringCost

func (s *RedshiftReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *RedshiftReservedInstancesConfiguration

SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.

func (*RedshiftReservedInstancesConfiguration) SetNormalizedUnitsToPurchase

func (s *RedshiftReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *RedshiftReservedInstancesConfiguration

SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.

func (*RedshiftReservedInstancesConfiguration) SetNumberOfInstancesToPurchase

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

SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.

func (*RedshiftReservedInstancesConfiguration) SetPaymentOption

func (s *RedshiftReservedInstancesConfiguration) SetPaymentOption(v string) *RedshiftReservedInstancesConfiguration

SetPaymentOption sets the PaymentOption field's value.

func (*RedshiftReservedInstancesConfiguration) SetReservedInstancesRegion

func (s *RedshiftReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *RedshiftReservedInstancesConfiguration

SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.

func (*RedshiftReservedInstancesConfiguration) SetService

func (s *RedshiftReservedInstancesConfiguration) SetService(v string) *RedshiftReservedInstancesConfiguration

SetService sets the Service field's value.

func (*RedshiftReservedInstancesConfiguration) SetSizeFlexEligible

func (s *RedshiftReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *RedshiftReservedInstancesConfiguration

SetSizeFlexEligible sets the SizeFlexEligible field's value.

func (*RedshiftReservedInstancesConfiguration) SetTerm

func (s *RedshiftReservedInstancesConfiguration) SetTerm(v string) *RedshiftReservedInstancesConfiguration

SetTerm sets the Term field's value.

func (*RedshiftReservedInstancesConfiguration) SetUpfrontCost

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

SetUpfrontCost sets the UpfrontCost field's value.

func (RedshiftReservedInstancesConfiguration) String

func (s RedshiftReservedInstancesConfiguration) 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 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

func (s ReservedInstancesCostCalculation) 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 (*ReservedInstancesCostCalculation) SetPricing

func (s *ReservedInstancesCostCalculation) SetPricing(v *ReservedInstancesPricing) *ReservedInstancesCostCalculation

SetPricing sets the Pricing field's value.

func (ReservedInstancesCostCalculation) String

func (s ReservedInstancesCostCalculation) 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 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

func (s *ResourceCostCalculation) SetPricing(v *ResourcePricing) *ResourceCostCalculation

SetPricing sets the Pricing field's value.

func (*ResourceCostCalculation) SetUsages

func (s *ResourceCostCalculation) SetUsages(v []*Usage) *ResourceCostCalculation

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 DB instance recommendation details.
    RdsDbInstance *RdsDbInstance `locationName:"rdsDbInstance" type:"structure"`

    // The DB instance storage recommendation details.
    RdsDbInstanceStorage *RdsDbInstanceStorage `locationName:"rdsDbInstanceStorage" 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) SetRdsDbInstance

func (s *ResourceDetails) SetRdsDbInstance(v *RdsDbInstance) *ResourceDetails

SetRdsDbInstance sets the RdsDbInstance field's value.

func (*ResourceDetails) SetRdsDbInstanceStorage

func (s *ResourceDetails) SetRdsDbInstanceStorage(v *RdsDbInstanceStorage) *ResourceDetails

SetRdsDbInstanceStorage sets the RdsDbInstanceStorage 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

func (s *ResourceNotFoundException) Code() string

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

func (s *SageMakerSavingsPlans) SetConfiguration(v *SageMakerSavingsPlansConfiguration) *SageMakerSavingsPlans

SetConfiguration sets the Configuration field's value.

func (*SageMakerSavingsPlans) SetCostCalculation

func (s *SageMakerSavingsPlans) SetCostCalculation(v *SavingsPlansCostCalculation) *SageMakerSavingsPlans

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

func (s SageMakerSavingsPlansConfiguration) 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 (*SageMakerSavingsPlansConfiguration) SetAccountScope

func (s *SageMakerSavingsPlansConfiguration) SetAccountScope(v string) *SageMakerSavingsPlansConfiguration

SetAccountScope sets the AccountScope field's value.

func (*SageMakerSavingsPlansConfiguration) SetHourlyCommitment

func (s *SageMakerSavingsPlansConfiguration) SetHourlyCommitment(v string) *SageMakerSavingsPlansConfiguration

SetHourlyCommitment sets the HourlyCommitment field's value.

func (*SageMakerSavingsPlansConfiguration) SetPaymentOption

func (s *SageMakerSavingsPlansConfiguration) SetPaymentOption(v string) *SageMakerSavingsPlansConfiguration

SetPaymentOption sets the PaymentOption field's value.

func (*SageMakerSavingsPlansConfiguration) SetTerm

func (s *SageMakerSavingsPlansConfiguration) SetTerm(v string) *SageMakerSavingsPlansConfiguration

SetTerm sets the Term field's value.

func (SageMakerSavingsPlansConfiguration) String

func (s SageMakerSavingsPlansConfiguration) 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 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

func (s *SavingsPlansCostCalculation) SetPricing(v *SavingsPlansPricing) *SavingsPlansCostCalculation

SetPricing sets the Pricing field's value.

func (SavingsPlansCostCalculation) String

func (s SavingsPlansCostCalculation) 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 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

func (s *StorageConfiguration) SetSizeInGb(v float64) *StorageConfiguration

SetSizeInGb sets the SizeInGb field's value.

func (*StorageConfiguration) SetType

func (s *StorageConfiguration) SetType(v string) *StorageConfiguration

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

func (s *UpdateEnrollmentStatusInput) SetStatus(v string) *UpdateEnrollmentStatusInput

SetStatus sets the Status field's value.

func (UpdateEnrollmentStatusInput) String

func (s UpdateEnrollmentStatusInput) 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 (*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

func (s *UpdateEnrollmentStatusOutput) SetStatus(v string) *UpdateEnrollmentStatusOutput

SetStatus sets the Status field's value.

func (UpdateEnrollmentStatusOutput) String

func (s UpdateEnrollmentStatusOutput) 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 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

func (s *ValidationExceptionDetail) SetFieldName(v string) *ValidationExceptionDetail

SetFieldName sets the FieldName field's value.

func (*ValidationExceptionDetail) SetMessage

func (s *ValidationExceptionDetail) SetMessage(v string) *ValidationExceptionDetail

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".