func ActionType_Values() []string
ActionType_Values returns all elements of the ActionType enum
func EnrollmentStatus_Values() []string
EnrollmentStatus_Values returns all elements of the EnrollmentStatus enum
func ImplementationEffort_Values() []string
ImplementationEffort_Values returns all elements of the ImplementationEffort enum
func MemberAccountDiscountVisibility_Values() []string
MemberAccountDiscountVisibility_Values returns all elements of the MemberAccountDiscountVisibility enum
func Order_Values() []string
Order_Values returns all elements of the Order enum
func ResourceType_Values() []string
ResourceType_Values returns all elements of the ResourceType enum
func SavingsEstimationMode_Values() []string
SavingsEstimationMode_Values returns all elements of the SavingsEstimationMode enum
func Source_Values() []string
Source_Values returns all elements of the Source enum
func ValidationExceptionReason_Values() []string
ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum
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 (s *AccessDeniedException) Code() string
Code returns the exception type name.
func (s *AccessDeniedException) Error() string
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 (s *AccessDeniedException) Message() string
Message returns the exception's message.
func (s *AccessDeniedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
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 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 (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 (s *AccountEnrollmentStatus) SetAccountId(v string) *AccountEnrollmentStatus
SetAccountId sets the AccountId field's value.
func (s *AccountEnrollmentStatus) SetCreatedTimestamp(v time.Time) *AccountEnrollmentStatus
SetCreatedTimestamp sets the CreatedTimestamp field's value.
func (s *AccountEnrollmentStatus) SetLastUpdatedTimestamp(v time.Time) *AccountEnrollmentStatus
SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value.
func (s *AccountEnrollmentStatus) SetStatus(v string) *AccountEnrollmentStatus
SetStatus sets the Status field's value.
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 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 (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 (s *BlockStoragePerformanceConfiguration) SetIops(v float64) *BlockStoragePerformanceConfiguration
SetIops sets the Iops field's value.
func (s *BlockStoragePerformanceConfiguration) SetThroughput(v float64) *BlockStoragePerformanceConfiguration
SetThroughput sets the Throughput field's value.
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 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 (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 (s *ComputeConfiguration) SetArchitecture(v string) *ComputeConfiguration
SetArchitecture sets the Architecture field's value.
func (s *ComputeConfiguration) SetMemorySizeInMB(v int64) *ComputeConfiguration
SetMemorySizeInMB sets the MemorySizeInMB field's value.
func (s *ComputeConfiguration) SetPlatform(v string) *ComputeConfiguration
SetPlatform sets the Platform field's value.
func (s *ComputeConfiguration) SetVCpu(v float64) *ComputeConfiguration
SetVCpu sets the VCpu field's value.
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 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 (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 (s *ComputeSavingsPlans) SetConfiguration(v *ComputeSavingsPlansConfiguration) *ComputeSavingsPlans
SetConfiguration sets the Configuration field's value.
func (s *ComputeSavingsPlans) SetCostCalculation(v *SavingsPlansCostCalculation) *ComputeSavingsPlans
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *ComputeSavingsPlansConfiguration) SetAccountScope(v string) *ComputeSavingsPlansConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *ComputeSavingsPlansConfiguration) SetHourlyCommitment(v string) *ComputeSavingsPlansConfiguration
SetHourlyCommitment sets the HourlyCommitment field's value.
func (s *ComputeSavingsPlansConfiguration) SetPaymentOption(v string) *ComputeSavingsPlansConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *ComputeSavingsPlansConfiguration) SetTerm(v string) *ComputeSavingsPlansConfiguration
SetTerm sets the Term field's value.
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 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(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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 (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 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 (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 (s *DbInstanceConfiguration) SetDbInstanceClass(v string) *DbInstanceConfiguration
SetDbInstanceClass sets the DbInstanceClass field's value.
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 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 (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 (s *EbsVolume) SetConfiguration(v *EbsVolumeConfiguration) *EbsVolume
SetConfiguration sets the Configuration field's value.
func (s *EbsVolume) SetCostCalculation(v *ResourceCostCalculation) *EbsVolume
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *EbsVolumeConfiguration) SetAttachmentState(v string) *EbsVolumeConfiguration
SetAttachmentState sets the AttachmentState field's value.
func (s *EbsVolumeConfiguration) SetPerformance(v *BlockStoragePerformanceConfiguration) *EbsVolumeConfiguration
SetPerformance sets the Performance field's value.
func (s *EbsVolumeConfiguration) SetStorage(v *StorageConfiguration) *EbsVolumeConfiguration
SetStorage sets the Storage field's value.
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 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 (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 (s *Ec2AutoScalingGroup) SetConfiguration(v *Ec2AutoScalingGroupConfiguration) *Ec2AutoScalingGroup
SetConfiguration sets the Configuration field's value.
func (s *Ec2AutoScalingGroup) SetCostCalculation(v *ResourceCostCalculation) *Ec2AutoScalingGroup
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *Ec2AutoScalingGroupConfiguration) SetInstance(v *InstanceConfiguration) *Ec2AutoScalingGroupConfiguration
SetInstance sets the Instance field's value.
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 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 (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 (s *Ec2Instance) SetConfiguration(v *Ec2InstanceConfiguration) *Ec2Instance
SetConfiguration sets the Configuration field's value.
func (s *Ec2Instance) SetCostCalculation(v *ResourceCostCalculation) *Ec2Instance
SetCostCalculation sets the CostCalculation field's value.
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 struct { // Details about the instance. Instance *InstanceConfiguration `locationName:"instance" type:"structure"` // contains filtered or unexported fields }
The EC2 instance configuration used for recommendations.
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 (s *Ec2InstanceConfiguration) SetInstance(v *InstanceConfiguration) *Ec2InstanceConfiguration
SetInstance sets the Instance field's value.
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 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 (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 (s *Ec2InstanceSavingsPlans) SetConfiguration(v *Ec2InstanceSavingsPlansConfiguration) *Ec2InstanceSavingsPlans
SetConfiguration sets the Configuration field's value.
func (s *Ec2InstanceSavingsPlans) SetCostCalculation(v *SavingsPlansCostCalculation) *Ec2InstanceSavingsPlans
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *Ec2InstanceSavingsPlansConfiguration) SetAccountScope(v string) *Ec2InstanceSavingsPlansConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *Ec2InstanceSavingsPlansConfiguration) SetHourlyCommitment(v string) *Ec2InstanceSavingsPlansConfiguration
SetHourlyCommitment sets the HourlyCommitment field's value.
func (s *Ec2InstanceSavingsPlansConfiguration) SetInstanceFamily(v string) *Ec2InstanceSavingsPlansConfiguration
SetInstanceFamily sets the InstanceFamily field's value.
func (s *Ec2InstanceSavingsPlansConfiguration) SetPaymentOption(v string) *Ec2InstanceSavingsPlansConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *Ec2InstanceSavingsPlansConfiguration) SetSavingsPlansRegion(v string) *Ec2InstanceSavingsPlansConfiguration
SetSavingsPlansRegion sets the SavingsPlansRegion field's value.
func (s *Ec2InstanceSavingsPlansConfiguration) SetTerm(v string) *Ec2InstanceSavingsPlansConfiguration
SetTerm sets the Term field's value.
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 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 (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 (s *Ec2ReservedInstances) SetConfiguration(v *Ec2ReservedInstancesConfiguration) *Ec2ReservedInstances
SetConfiguration sets the Configuration field's value.
func (s *Ec2ReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *Ec2ReservedInstances
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *Ec2ReservedInstancesConfiguration) SetAccountScope(v string) *Ec2ReservedInstancesConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *Ec2ReservedInstancesConfiguration) SetCurrentGeneration(v string) *Ec2ReservedInstancesConfiguration
SetCurrentGeneration sets the CurrentGeneration field's value.
func (s *Ec2ReservedInstancesConfiguration) SetInstanceFamily(v string) *Ec2ReservedInstancesConfiguration
SetInstanceFamily sets the InstanceFamily field's value.
func (s *Ec2ReservedInstancesConfiguration) SetInstanceType(v string) *Ec2ReservedInstancesConfiguration
SetInstanceType sets the InstanceType field's value.
func (s *Ec2ReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *Ec2ReservedInstancesConfiguration
SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.
func (s *Ec2ReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *Ec2ReservedInstancesConfiguration
SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.
func (s *Ec2ReservedInstancesConfiguration) SetNumberOfInstancesToPurchase(v string) *Ec2ReservedInstancesConfiguration
SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.
func (s *Ec2ReservedInstancesConfiguration) SetOfferingClass(v string) *Ec2ReservedInstancesConfiguration
SetOfferingClass sets the OfferingClass field's value.
func (s *Ec2ReservedInstancesConfiguration) SetPaymentOption(v string) *Ec2ReservedInstancesConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *Ec2ReservedInstancesConfiguration) SetPlatform(v string) *Ec2ReservedInstancesConfiguration
SetPlatform sets the Platform field's value.
func (s *Ec2ReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *Ec2ReservedInstancesConfiguration
SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.
func (s *Ec2ReservedInstancesConfiguration) SetService(v string) *Ec2ReservedInstancesConfiguration
SetService sets the Service field's value.
func (s *Ec2ReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *Ec2ReservedInstancesConfiguration
SetSizeFlexEligible sets the SizeFlexEligible field's value.
func (s *Ec2ReservedInstancesConfiguration) SetTenancy(v string) *Ec2ReservedInstancesConfiguration
SetTenancy sets the Tenancy field's value.
func (s *Ec2ReservedInstancesConfiguration) SetTerm(v string) *Ec2ReservedInstancesConfiguration
SetTerm sets the Term field's value.
func (s *Ec2ReservedInstancesConfiguration) SetUpfrontCost(v string) *Ec2ReservedInstancesConfiguration
SetUpfrontCost sets the UpfrontCost field's value.
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 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 (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 (s *EcsService) SetConfiguration(v *EcsServiceConfiguration) *EcsService
SetConfiguration sets the Configuration field's value.
func (s *EcsService) SetCostCalculation(v *ResourceCostCalculation) *EcsService
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *EcsServiceConfiguration) SetCompute(v *ComputeConfiguration) *EcsServiceConfiguration
SetCompute sets the Compute field's value.
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 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 (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 (s *ElastiCacheReservedInstances) SetConfiguration(v *ElastiCacheReservedInstancesConfiguration) *ElastiCacheReservedInstances
SetConfiguration sets the Configuration field's value.
func (s *ElastiCacheReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *ElastiCacheReservedInstances
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *ElastiCacheReservedInstancesConfiguration) SetAccountScope(v string) *ElastiCacheReservedInstancesConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetCurrentGeneration(v string) *ElastiCacheReservedInstancesConfiguration
SetCurrentGeneration sets the CurrentGeneration field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetInstanceFamily(v string) *ElastiCacheReservedInstancesConfiguration
SetInstanceFamily sets the InstanceFamily field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetInstanceType(v string) *ElastiCacheReservedInstancesConfiguration
SetInstanceType sets the InstanceType field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *ElastiCacheReservedInstancesConfiguration
SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *ElastiCacheReservedInstancesConfiguration
SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetNumberOfInstancesToPurchase(v string) *ElastiCacheReservedInstancesConfiguration
SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetPaymentOption(v string) *ElastiCacheReservedInstancesConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *ElastiCacheReservedInstancesConfiguration
SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetService(v string) *ElastiCacheReservedInstancesConfiguration
SetService sets the Service field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *ElastiCacheReservedInstancesConfiguration
SetSizeFlexEligible sets the SizeFlexEligible field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetTerm(v string) *ElastiCacheReservedInstancesConfiguration
SetTerm sets the Term field's value.
func (s *ElastiCacheReservedInstancesConfiguration) SetUpfrontCost(v string) *ElastiCacheReservedInstancesConfiguration
SetUpfrontCost sets the UpfrontCost field's value.
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 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 (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 (s *EstimatedDiscounts) SetOtherDiscount(v float64) *EstimatedDiscounts
SetOtherDiscount sets the OtherDiscount field's value.
func (s *EstimatedDiscounts) SetReservedInstancesDiscount(v float64) *EstimatedDiscounts
SetReservedInstancesDiscount sets the ReservedInstancesDiscount field's value.
func (s *EstimatedDiscounts) SetSavingsPlansDiscount(v float64) *EstimatedDiscounts
SetSavingsPlansDiscount sets the SavingsPlansDiscount field's value.
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 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 (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 (s *Filter) SetAccountIds(v []*string) *Filter
SetAccountIds sets the AccountIds field's value.
func (s *Filter) SetActionTypes(v []*string) *Filter
SetActionTypes sets the ActionTypes field's value.
func (s *Filter) SetImplementationEfforts(v []*string) *Filter
SetImplementationEfforts sets the ImplementationEfforts field's value.
func (s *Filter) SetRecommendationIds(v []*string) *Filter
SetRecommendationIds sets the RecommendationIds field's value.
func (s *Filter) SetRegions(v []*string) *Filter
SetRegions sets the Regions field's value.
func (s *Filter) SetResourceArns(v []*string) *Filter
SetResourceArns sets the ResourceArns field's value.
func (s *Filter) SetResourceIds(v []*string) *Filter
SetResourceIds sets the ResourceIds field's value.
func (s *Filter) SetResourceTypes(v []*string) *Filter
SetResourceTypes sets the ResourceTypes field's value.
func (s *Filter) SetRestartNeeded(v bool) *Filter
SetRestartNeeded sets the RestartNeeded field's value.
func (s *Filter) SetRollbackPossible(v bool) *Filter
SetRollbackPossible sets the RollbackPossible field's value.
func (s *Filter) SetTags(v []*Tag) *Filter
SetTags sets the Tags field's value.
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 (s *Filter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetPreferencesInput struct {
// contains filtered or unexported fields
}
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 (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 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 (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 (s *GetPreferencesOutput) SetMemberAccountDiscountVisibility(v string) *GetPreferencesOutput
SetMemberAccountDiscountVisibility sets the MemberAccountDiscountVisibility field's value.
func (s *GetPreferencesOutput) SetSavingsEstimationMode(v string) *GetPreferencesOutput
SetSavingsEstimationMode sets the SavingsEstimationMode field's value.
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 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 (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 (s *GetRecommendationInput) SetRecommendationId(v string) *GetRecommendationInput
SetRecommendationId sets the RecommendationId field's value.
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 (s *GetRecommendationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 (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 (s *GetRecommendationOutput) SetAccountId(v string) *GetRecommendationOutput
SetAccountId sets the AccountId field's value.
func (s *GetRecommendationOutput) SetActionType(v string) *GetRecommendationOutput
SetActionType sets the ActionType field's value.
func (s *GetRecommendationOutput) SetCostCalculationLookbackPeriodInDays(v int64) *GetRecommendationOutput
SetCostCalculationLookbackPeriodInDays sets the CostCalculationLookbackPeriodInDays field's value.
func (s *GetRecommendationOutput) SetCurrencyCode(v string) *GetRecommendationOutput
SetCurrencyCode sets the CurrencyCode field's value.
func (s *GetRecommendationOutput) SetCurrentResourceDetails(v *ResourceDetails) *GetRecommendationOutput
SetCurrentResourceDetails sets the CurrentResourceDetails field's value.
func (s *GetRecommendationOutput) SetCurrentResourceType(v string) *GetRecommendationOutput
SetCurrentResourceType sets the CurrentResourceType field's value.
func (s *GetRecommendationOutput) SetEstimatedMonthlyCost(v float64) *GetRecommendationOutput
SetEstimatedMonthlyCost sets the EstimatedMonthlyCost field's value.
func (s *GetRecommendationOutput) SetEstimatedMonthlySavings(v float64) *GetRecommendationOutput
SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.
func (s *GetRecommendationOutput) SetEstimatedSavingsOverCostCalculationLookbackPeriod(v float64) *GetRecommendationOutput
SetEstimatedSavingsOverCostCalculationLookbackPeriod sets the EstimatedSavingsOverCostCalculationLookbackPeriod field's value.
func (s *GetRecommendationOutput) SetEstimatedSavingsPercentage(v float64) *GetRecommendationOutput
SetEstimatedSavingsPercentage sets the EstimatedSavingsPercentage field's value.
func (s *GetRecommendationOutput) SetImplementationEffort(v string) *GetRecommendationOutput
SetImplementationEffort sets the ImplementationEffort field's value.
func (s *GetRecommendationOutput) SetLastRefreshTimestamp(v time.Time) *GetRecommendationOutput
SetLastRefreshTimestamp sets the LastRefreshTimestamp field's value.
func (s *GetRecommendationOutput) SetRecommendationId(v string) *GetRecommendationOutput
SetRecommendationId sets the RecommendationId field's value.
func (s *GetRecommendationOutput) SetRecommendationLookbackPeriodInDays(v int64) *GetRecommendationOutput
SetRecommendationLookbackPeriodInDays sets the RecommendationLookbackPeriodInDays field's value.
func (s *GetRecommendationOutput) SetRecommendedResourceDetails(v *ResourceDetails) *GetRecommendationOutput
SetRecommendedResourceDetails sets the RecommendedResourceDetails field's value.
func (s *GetRecommendationOutput) SetRecommendedResourceType(v string) *GetRecommendationOutput
SetRecommendedResourceType sets the RecommendedResourceType field's value.
func (s *GetRecommendationOutput) SetRegion(v string) *GetRecommendationOutput
SetRegion sets the Region field's value.
func (s *GetRecommendationOutput) SetResourceArn(v string) *GetRecommendationOutput
SetResourceArn sets the ResourceArn field's value.
func (s *GetRecommendationOutput) SetResourceId(v string) *GetRecommendationOutput
SetResourceId sets the ResourceId field's value.
func (s *GetRecommendationOutput) SetRestartNeeded(v bool) *GetRecommendationOutput
SetRestartNeeded sets the RestartNeeded field's value.
func (s *GetRecommendationOutput) SetRollbackPossible(v bool) *GetRecommendationOutput
SetRollbackPossible sets the RollbackPossible field's value.
func (s *GetRecommendationOutput) SetSource(v string) *GetRecommendationOutput
SetSource sets the Source field's value.
func (s *GetRecommendationOutput) SetTags(v []*Tag) *GetRecommendationOutput
SetTags sets the Tags field's value.
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 struct { // Details about the type. Type *string `locationName:"type" type:"string"` // contains filtered or unexported fields }
The Instance configuration used for recommendations.
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 (s *InstanceConfiguration) SetType(v string) *InstanceConfiguration
SetType sets the Type field's value.
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 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 (s *InternalServerException) Code() string
Code returns the exception type name.
func (s *InternalServerException) Error() string
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 (s *InternalServerException) Message() string
Message returns the exception's message.
func (s *InternalServerException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InternalServerException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
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 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 (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 (s *LambdaFunction) SetConfiguration(v *LambdaFunctionConfiguration) *LambdaFunction
SetConfiguration sets the Configuration field's value.
func (s *LambdaFunction) SetCostCalculation(v *ResourceCostCalculation) *LambdaFunction
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *LambdaFunctionConfiguration) SetCompute(v *ComputeConfiguration) *LambdaFunctionConfiguration
SetCompute sets the Compute field's value.
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 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 (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 (s *ListEnrollmentStatusesInput) SetAccountId(v string) *ListEnrollmentStatusesInput
SetAccountId sets the AccountId field's value.
func (s *ListEnrollmentStatusesInput) SetIncludeOrganizationInfo(v bool) *ListEnrollmentStatusesInput
SetIncludeOrganizationInfo sets the IncludeOrganizationInfo field's value.
func (s *ListEnrollmentStatusesInput) SetMaxResults(v int64) *ListEnrollmentStatusesInput
SetMaxResults sets the MaxResults field's value.
func (s *ListEnrollmentStatusesInput) SetNextToken(v string) *ListEnrollmentStatusesInput
SetNextToken sets the NextToken field's value.
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 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 (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 (s *ListEnrollmentStatusesOutput) SetIncludeMemberAccounts(v bool) *ListEnrollmentStatusesOutput
SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value.
func (s *ListEnrollmentStatusesOutput) SetItems(v []*AccountEnrollmentStatus) *ListEnrollmentStatusesOutput
SetItems sets the Items field's value.
func (s *ListEnrollmentStatusesOutput) SetNextToken(v string) *ListEnrollmentStatusesOutput
SetNextToken sets the NextToken field's value.
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 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 (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 (s *ListRecommendationSummariesInput) SetFilter(v *Filter) *ListRecommendationSummariesInput
SetFilter sets the Filter field's value.
func (s *ListRecommendationSummariesInput) SetGroupBy(v string) *ListRecommendationSummariesInput
SetGroupBy sets the GroupBy field's value.
func (s *ListRecommendationSummariesInput) SetMaxResults(v int64) *ListRecommendationSummariesInput
SetMaxResults sets the MaxResults field's value.
func (s *ListRecommendationSummariesInput) SetNextToken(v string) *ListRecommendationSummariesInput
SetNextToken sets the NextToken field's value.
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 (s *ListRecommendationSummariesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 (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 (s *ListRecommendationSummariesOutput) SetCurrencyCode(v string) *ListRecommendationSummariesOutput
SetCurrencyCode sets the CurrencyCode field's value.
func (s *ListRecommendationSummariesOutput) SetEstimatedTotalDedupedSavings(v float64) *ListRecommendationSummariesOutput
SetEstimatedTotalDedupedSavings sets the EstimatedTotalDedupedSavings field's value.
func (s *ListRecommendationSummariesOutput) SetGroupBy(v string) *ListRecommendationSummariesOutput
SetGroupBy sets the GroupBy field's value.
func (s *ListRecommendationSummariesOutput) SetItems(v []*RecommendationSummary) *ListRecommendationSummariesOutput
SetItems sets the Items field's value.
func (s *ListRecommendationSummariesOutput) SetNextToken(v string) *ListRecommendationSummariesOutput
SetNextToken sets the NextToken field's value.
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 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 (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 (s *ListRecommendationsInput) SetFilter(v *Filter) *ListRecommendationsInput
SetFilter sets the Filter field's value.
func (s *ListRecommendationsInput) SetIncludeAllRecommendations(v bool) *ListRecommendationsInput
SetIncludeAllRecommendations sets the IncludeAllRecommendations field's value.
func (s *ListRecommendationsInput) SetMaxResults(v int64) *ListRecommendationsInput
SetMaxResults sets the MaxResults field's value.
func (s *ListRecommendationsInput) SetNextToken(v string) *ListRecommendationsInput
SetNextToken sets the NextToken field's value.
func (s *ListRecommendationsInput) SetOrderBy(v *OrderBy) *ListRecommendationsInput
SetOrderBy sets the OrderBy field's value.
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 (s *ListRecommendationsInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 (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 (s *ListRecommendationsOutput) SetItems(v []*Recommendation) *ListRecommendationsOutput
SetItems sets the Items field's value.
func (s *ListRecommendationsOutput) SetNextToken(v string) *ListRecommendationsOutput
SetNextToken sets the NextToken field's value.
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 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 (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 (s *OpenSearchReservedInstances) SetConfiguration(v *OpenSearchReservedInstancesConfiguration) *OpenSearchReservedInstances
SetConfiguration sets the Configuration field's value.
func (s *OpenSearchReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *OpenSearchReservedInstances
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *OpenSearchReservedInstancesConfiguration) SetAccountScope(v string) *OpenSearchReservedInstancesConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetCurrentGeneration(v string) *OpenSearchReservedInstancesConfiguration
SetCurrentGeneration sets the CurrentGeneration field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetInstanceType(v string) *OpenSearchReservedInstancesConfiguration
SetInstanceType sets the InstanceType field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *OpenSearchReservedInstancesConfiguration
SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *OpenSearchReservedInstancesConfiguration
SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetNumberOfInstancesToPurchase(v string) *OpenSearchReservedInstancesConfiguration
SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetPaymentOption(v string) *OpenSearchReservedInstancesConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *OpenSearchReservedInstancesConfiguration
SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetService(v string) *OpenSearchReservedInstancesConfiguration
SetService sets the Service field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *OpenSearchReservedInstancesConfiguration
SetSizeFlexEligible sets the SizeFlexEligible field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetTerm(v string) *OpenSearchReservedInstancesConfiguration
SetTerm sets the Term field's value.
func (s *OpenSearchReservedInstancesConfiguration) SetUpfrontCost(v string) *OpenSearchReservedInstancesConfiguration
SetUpfrontCost sets the UpfrontCost field's value.
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 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 (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 (s *OrderBy) SetDimension(v string) *OrderBy
SetDimension sets the Dimension field's value.
func (s *OrderBy) SetOrder(v string) *OrderBy
SetOrder sets the Order field's value.
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 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 (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 (s *RdsDbInstance) SetConfiguration(v *RdsDbInstanceConfiguration) *RdsDbInstance
SetConfiguration sets the Configuration field's value.
func (s *RdsDbInstance) SetCostCalculation(v *ResourceCostCalculation) *RdsDbInstance
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *RdsDbInstanceConfiguration) SetInstance(v *DbInstanceConfiguration) *RdsDbInstanceConfiguration
SetInstance sets the Instance field's value.
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 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 (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 (s *RdsDbInstanceStorage) SetConfiguration(v *RdsDbInstanceStorageConfiguration) *RdsDbInstanceStorage
SetConfiguration sets the Configuration field's value.
func (s *RdsDbInstanceStorage) SetCostCalculation(v *ResourceCostCalculation) *RdsDbInstanceStorage
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *RdsDbInstanceStorageConfiguration) SetAllocatedStorageInGb(v float64) *RdsDbInstanceStorageConfiguration
SetAllocatedStorageInGb sets the AllocatedStorageInGb field's value.
func (s *RdsDbInstanceStorageConfiguration) SetIops(v float64) *RdsDbInstanceStorageConfiguration
SetIops sets the Iops field's value.
func (s *RdsDbInstanceStorageConfiguration) SetStorageThroughput(v float64) *RdsDbInstanceStorageConfiguration
SetStorageThroughput sets the StorageThroughput field's value.
func (s *RdsDbInstanceStorageConfiguration) SetStorageType(v string) *RdsDbInstanceStorageConfiguration
SetStorageType sets the StorageType field's value.
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 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 (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 (s *RdsReservedInstances) SetConfiguration(v *RdsReservedInstancesConfiguration) *RdsReservedInstances
SetConfiguration sets the Configuration field's value.
func (s *RdsReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *RdsReservedInstances
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *RdsReservedInstancesConfiguration) SetAccountScope(v string) *RdsReservedInstancesConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *RdsReservedInstancesConfiguration) SetCurrentGeneration(v string) *RdsReservedInstancesConfiguration
SetCurrentGeneration sets the CurrentGeneration field's value.
func (s *RdsReservedInstancesConfiguration) SetDatabaseEdition(v string) *RdsReservedInstancesConfiguration
SetDatabaseEdition sets the DatabaseEdition field's value.
func (s *RdsReservedInstancesConfiguration) SetDatabaseEngine(v string) *RdsReservedInstancesConfiguration
SetDatabaseEngine sets the DatabaseEngine field's value.
func (s *RdsReservedInstancesConfiguration) SetDeploymentOption(v string) *RdsReservedInstancesConfiguration
SetDeploymentOption sets the DeploymentOption field's value.
func (s *RdsReservedInstancesConfiguration) SetInstanceFamily(v string) *RdsReservedInstancesConfiguration
SetInstanceFamily sets the InstanceFamily field's value.
func (s *RdsReservedInstancesConfiguration) SetInstanceType(v string) *RdsReservedInstancesConfiguration
SetInstanceType sets the InstanceType field's value.
func (s *RdsReservedInstancesConfiguration) SetLicenseModel(v string) *RdsReservedInstancesConfiguration
SetLicenseModel sets the LicenseModel field's value.
func (s *RdsReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *RdsReservedInstancesConfiguration
SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.
func (s *RdsReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *RdsReservedInstancesConfiguration
SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.
func (s *RdsReservedInstancesConfiguration) SetNumberOfInstancesToPurchase(v string) *RdsReservedInstancesConfiguration
SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.
func (s *RdsReservedInstancesConfiguration) SetPaymentOption(v string) *RdsReservedInstancesConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *RdsReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *RdsReservedInstancesConfiguration
SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.
func (s *RdsReservedInstancesConfiguration) SetService(v string) *RdsReservedInstancesConfiguration
SetService sets the Service field's value.
func (s *RdsReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *RdsReservedInstancesConfiguration
SetSizeFlexEligible sets the SizeFlexEligible field's value.
func (s *RdsReservedInstancesConfiguration) SetTerm(v string) *RdsReservedInstancesConfiguration
SetTerm sets the Term field's value.
func (s *RdsReservedInstancesConfiguration) SetUpfrontCost(v string) *RdsReservedInstancesConfiguration
SetUpfrontCost sets the UpfrontCost field's value.
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 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 (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 (s *Recommendation) SetAccountId(v string) *Recommendation
SetAccountId sets the AccountId field's value.
func (s *Recommendation) SetActionType(v string) *Recommendation
SetActionType sets the ActionType field's value.
func (s *Recommendation) SetCurrencyCode(v string) *Recommendation
SetCurrencyCode sets the CurrencyCode field's value.
func (s *Recommendation) SetCurrentResourceSummary(v string) *Recommendation
SetCurrentResourceSummary sets the CurrentResourceSummary field's value.
func (s *Recommendation) SetCurrentResourceType(v string) *Recommendation
SetCurrentResourceType sets the CurrentResourceType field's value.
func (s *Recommendation) SetEstimatedMonthlyCost(v float64) *Recommendation
SetEstimatedMonthlyCost sets the EstimatedMonthlyCost field's value.
func (s *Recommendation) SetEstimatedMonthlySavings(v float64) *Recommendation
SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.
func (s *Recommendation) SetEstimatedSavingsPercentage(v float64) *Recommendation
SetEstimatedSavingsPercentage sets the EstimatedSavingsPercentage field's value.
func (s *Recommendation) SetImplementationEffort(v string) *Recommendation
SetImplementationEffort sets the ImplementationEffort field's value.
func (s *Recommendation) SetLastRefreshTimestamp(v time.Time) *Recommendation
SetLastRefreshTimestamp sets the LastRefreshTimestamp field's value.
func (s *Recommendation) SetRecommendationId(v string) *Recommendation
SetRecommendationId sets the RecommendationId field's value.
func (s *Recommendation) SetRecommendationLookbackPeriodInDays(v int64) *Recommendation
SetRecommendationLookbackPeriodInDays sets the RecommendationLookbackPeriodInDays field's value.
func (s *Recommendation) SetRecommendedResourceSummary(v string) *Recommendation
SetRecommendedResourceSummary sets the RecommendedResourceSummary field's value.
func (s *Recommendation) SetRecommendedResourceType(v string) *Recommendation
SetRecommendedResourceType sets the RecommendedResourceType field's value.
func (s *Recommendation) SetRegion(v string) *Recommendation
SetRegion sets the Region field's value.
func (s *Recommendation) SetResourceArn(v string) *Recommendation
SetResourceArn sets the ResourceArn field's value.
func (s *Recommendation) SetResourceId(v string) *Recommendation
SetResourceId sets the ResourceId field's value.
func (s *Recommendation) SetRestartNeeded(v bool) *Recommendation
SetRestartNeeded sets the RestartNeeded field's value.
func (s *Recommendation) SetRollbackPossible(v bool) *Recommendation
SetRollbackPossible sets the RollbackPossible field's value.
func (s *Recommendation) SetSource(v string) *Recommendation
SetSource sets the Source field's value.
func (s *Recommendation) SetTags(v []*Tag) *Recommendation
SetTags sets the Tags field's value.
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 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 (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 (s *RecommendationSummary) SetEstimatedMonthlySavings(v float64) *RecommendationSummary
SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.
func (s *RecommendationSummary) SetGroup(v string) *RecommendationSummary
SetGroup sets the Group field's value.
func (s *RecommendationSummary) SetRecommendationCount(v int64) *RecommendationSummary
SetRecommendationCount sets the RecommendationCount field's value.
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 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 (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 (s *RedshiftReservedInstances) SetConfiguration(v *RedshiftReservedInstancesConfiguration) *RedshiftReservedInstances
SetConfiguration sets the Configuration field's value.
func (s *RedshiftReservedInstances) SetCostCalculation(v *ReservedInstancesCostCalculation) *RedshiftReservedInstances
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *RedshiftReservedInstancesConfiguration) SetAccountScope(v string) *RedshiftReservedInstancesConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *RedshiftReservedInstancesConfiguration) SetCurrentGeneration(v string) *RedshiftReservedInstancesConfiguration
SetCurrentGeneration sets the CurrentGeneration field's value.
func (s *RedshiftReservedInstancesConfiguration) SetInstanceFamily(v string) *RedshiftReservedInstancesConfiguration
SetInstanceFamily sets the InstanceFamily field's value.
func (s *RedshiftReservedInstancesConfiguration) SetInstanceType(v string) *RedshiftReservedInstancesConfiguration
SetInstanceType sets the InstanceType field's value.
func (s *RedshiftReservedInstancesConfiguration) SetMonthlyRecurringCost(v string) *RedshiftReservedInstancesConfiguration
SetMonthlyRecurringCost sets the MonthlyRecurringCost field's value.
func (s *RedshiftReservedInstancesConfiguration) SetNormalizedUnitsToPurchase(v string) *RedshiftReservedInstancesConfiguration
SetNormalizedUnitsToPurchase sets the NormalizedUnitsToPurchase field's value.
func (s *RedshiftReservedInstancesConfiguration) SetNumberOfInstancesToPurchase(v string) *RedshiftReservedInstancesConfiguration
SetNumberOfInstancesToPurchase sets the NumberOfInstancesToPurchase field's value.
func (s *RedshiftReservedInstancesConfiguration) SetPaymentOption(v string) *RedshiftReservedInstancesConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *RedshiftReservedInstancesConfiguration) SetReservedInstancesRegion(v string) *RedshiftReservedInstancesConfiguration
SetReservedInstancesRegion sets the ReservedInstancesRegion field's value.
func (s *RedshiftReservedInstancesConfiguration) SetService(v string) *RedshiftReservedInstancesConfiguration
SetService sets the Service field's value.
func (s *RedshiftReservedInstancesConfiguration) SetSizeFlexEligible(v bool) *RedshiftReservedInstancesConfiguration
SetSizeFlexEligible sets the SizeFlexEligible field's value.
func (s *RedshiftReservedInstancesConfiguration) SetTerm(v string) *RedshiftReservedInstancesConfiguration
SetTerm sets the Term field's value.
func (s *RedshiftReservedInstancesConfiguration) SetUpfrontCost(v string) *RedshiftReservedInstancesConfiguration
SetUpfrontCost sets the UpfrontCost field's value.
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 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 (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 (s *ReservedInstancesCostCalculation) SetPricing(v *ReservedInstancesPricing) *ReservedInstancesCostCalculation
SetPricing sets the Pricing field's value.
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 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 (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 (s *ReservedInstancesPricing) SetEstimatedMonthlyAmortizedReservationCost(v float64) *ReservedInstancesPricing
SetEstimatedMonthlyAmortizedReservationCost sets the EstimatedMonthlyAmortizedReservationCost field's value.
func (s *ReservedInstancesPricing) SetEstimatedOnDemandCost(v float64) *ReservedInstancesPricing
SetEstimatedOnDemandCost sets the EstimatedOnDemandCost field's value.
func (s *ReservedInstancesPricing) SetMonthlyReservationEligibleCost(v float64) *ReservedInstancesPricing
SetMonthlyReservationEligibleCost sets the MonthlyReservationEligibleCost field's value.
func (s *ReservedInstancesPricing) SetSavingsPercentage(v float64) *ReservedInstancesPricing
SetSavingsPercentage sets the SavingsPercentage field's value.
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 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 (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 (s *ResourceCostCalculation) SetPricing(v *ResourcePricing) *ResourceCostCalculation
SetPricing sets the Pricing field's value.
func (s *ResourceCostCalculation) SetUsages(v []*Usage) *ResourceCostCalculation
SetUsages sets the Usages field's value.
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 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 (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 (s *ResourceDetails) SetComputeSavingsPlans(v *ComputeSavingsPlans) *ResourceDetails
SetComputeSavingsPlans sets the ComputeSavingsPlans field's value.
func (s *ResourceDetails) SetEbsVolume(v *EbsVolume) *ResourceDetails
SetEbsVolume sets the EbsVolume field's value.
func (s *ResourceDetails) SetEc2AutoScalingGroup(v *Ec2AutoScalingGroup) *ResourceDetails
SetEc2AutoScalingGroup sets the Ec2AutoScalingGroup field's value.
func (s *ResourceDetails) SetEc2Instance(v *Ec2Instance) *ResourceDetails
SetEc2Instance sets the Ec2Instance field's value.
func (s *ResourceDetails) SetEc2InstanceSavingsPlans(v *Ec2InstanceSavingsPlans) *ResourceDetails
SetEc2InstanceSavingsPlans sets the Ec2InstanceSavingsPlans field's value.
func (s *ResourceDetails) SetEc2ReservedInstances(v *Ec2ReservedInstances) *ResourceDetails
SetEc2ReservedInstances sets the Ec2ReservedInstances field's value.
func (s *ResourceDetails) SetEcsService(v *EcsService) *ResourceDetails
SetEcsService sets the EcsService field's value.
func (s *ResourceDetails) SetElastiCacheReservedInstances(v *ElastiCacheReservedInstances) *ResourceDetails
SetElastiCacheReservedInstances sets the ElastiCacheReservedInstances field's value.
func (s *ResourceDetails) SetLambdaFunction(v *LambdaFunction) *ResourceDetails
SetLambdaFunction sets the LambdaFunction field's value.
func (s *ResourceDetails) SetOpenSearchReservedInstances(v *OpenSearchReservedInstances) *ResourceDetails
SetOpenSearchReservedInstances sets the OpenSearchReservedInstances field's value.
func (s *ResourceDetails) SetRdsDbInstance(v *RdsDbInstance) *ResourceDetails
SetRdsDbInstance sets the RdsDbInstance field's value.
func (s *ResourceDetails) SetRdsDbInstanceStorage(v *RdsDbInstanceStorage) *ResourceDetails
SetRdsDbInstanceStorage sets the RdsDbInstanceStorage field's value.
func (s *ResourceDetails) SetRdsReservedInstances(v *RdsReservedInstances) *ResourceDetails
SetRdsReservedInstances sets the RdsReservedInstances field's value.
func (s *ResourceDetails) SetRedshiftReservedInstances(v *RedshiftReservedInstances) *ResourceDetails
SetRedshiftReservedInstances sets the RedshiftReservedInstances field's value.
func (s *ResourceDetails) SetSageMakerSavingsPlans(v *SageMakerSavingsPlans) *ResourceDetails
SetSageMakerSavingsPlans sets the SageMakerSavingsPlans field's value.
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 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 (s *ResourceNotFoundException) Code() string
Code returns the exception type name.
func (s *ResourceNotFoundException) Error() string
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 (s *ResourceNotFoundException) Message() string
Message returns the exception's message.
func (s *ResourceNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
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 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 (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 (s *ResourcePricing) SetEstimatedCostAfterDiscounts(v float64) *ResourcePricing
SetEstimatedCostAfterDiscounts sets the EstimatedCostAfterDiscounts field's value.
func (s *ResourcePricing) SetEstimatedCostBeforeDiscounts(v float64) *ResourcePricing
SetEstimatedCostBeforeDiscounts sets the EstimatedCostBeforeDiscounts field's value.
func (s *ResourcePricing) SetEstimatedDiscounts(v *EstimatedDiscounts) *ResourcePricing
SetEstimatedDiscounts sets the EstimatedDiscounts field's value.
func (s *ResourcePricing) SetEstimatedNetUnusedAmortizedCommitments(v float64) *ResourcePricing
SetEstimatedNetUnusedAmortizedCommitments sets the EstimatedNetUnusedAmortizedCommitments field's value.
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 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 (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 (s *SageMakerSavingsPlans) SetConfiguration(v *SageMakerSavingsPlansConfiguration) *SageMakerSavingsPlans
SetConfiguration sets the Configuration field's value.
func (s *SageMakerSavingsPlans) SetCostCalculation(v *SavingsPlansCostCalculation) *SageMakerSavingsPlans
SetCostCalculation sets the CostCalculation field's value.
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 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 (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 (s *SageMakerSavingsPlansConfiguration) SetAccountScope(v string) *SageMakerSavingsPlansConfiguration
SetAccountScope sets the AccountScope field's value.
func (s *SageMakerSavingsPlansConfiguration) SetHourlyCommitment(v string) *SageMakerSavingsPlansConfiguration
SetHourlyCommitment sets the HourlyCommitment field's value.
func (s *SageMakerSavingsPlansConfiguration) SetPaymentOption(v string) *SageMakerSavingsPlansConfiguration
SetPaymentOption sets the PaymentOption field's value.
func (s *SageMakerSavingsPlansConfiguration) SetTerm(v string) *SageMakerSavingsPlansConfiguration
SetTerm sets the Term field's value.
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 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 (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 (s *SavingsPlansCostCalculation) SetPricing(v *SavingsPlansPricing) *SavingsPlansCostCalculation
SetPricing sets the Pricing field's value.
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 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 (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 (s *SavingsPlansPricing) SetEstimatedMonthlyCommitment(v float64) *SavingsPlansPricing
SetEstimatedMonthlyCommitment sets the EstimatedMonthlyCommitment field's value.
func (s *SavingsPlansPricing) SetEstimatedOnDemandCost(v float64) *SavingsPlansPricing
SetEstimatedOnDemandCost sets the EstimatedOnDemandCost field's value.
func (s *SavingsPlansPricing) SetMonthlySavingsPlansEligibleCost(v float64) *SavingsPlansPricing
SetMonthlySavingsPlansEligibleCost sets the MonthlySavingsPlansEligibleCost field's value.
func (s *SavingsPlansPricing) SetSavingsPercentage(v float64) *SavingsPlansPricing
SetSavingsPercentage sets the SavingsPercentage field's value.
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 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 (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 (s *StorageConfiguration) SetSizeInGb(v float64) *StorageConfiguration
SetSizeInGb sets the SizeInGb field's value.
func (s *StorageConfiguration) SetType(v string) *StorageConfiguration
SetType sets the Type field's value.
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 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 (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 (s *Tag) SetKey(v string) *Tag
SetKey sets the Key field's value.
func (s *Tag) SetValue(v string) *Tag
SetValue sets the Value field's value.
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 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 (s *ThrottlingException) Code() string
Code returns the exception type name.
func (s *ThrottlingException) Error() string
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 (s *ThrottlingException) Message() string
Message returns the exception's message.
func (s *ThrottlingException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
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 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 (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 (s *UpdateEnrollmentStatusInput) SetIncludeMemberAccounts(v bool) *UpdateEnrollmentStatusInput
SetIncludeMemberAccounts sets the IncludeMemberAccounts field's value.
func (s *UpdateEnrollmentStatusInput) SetStatus(v string) *UpdateEnrollmentStatusInput
SetStatus sets the Status field's value.
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 (s *UpdateEnrollmentStatusInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateEnrollmentStatusOutput struct { // The enrollment status of the account. Status *string `locationName:"status" type:"string"` // contains filtered or unexported fields }
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 (s *UpdateEnrollmentStatusOutput) SetStatus(v string) *UpdateEnrollmentStatusOutput
SetStatus sets the Status field's value.
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 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 (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 (s *UpdatePreferencesInput) SetMemberAccountDiscountVisibility(v string) *UpdatePreferencesInput
SetMemberAccountDiscountVisibility sets the MemberAccountDiscountVisibility field's value.
func (s *UpdatePreferencesInput) SetSavingsEstimationMode(v string) *UpdatePreferencesInput
SetSavingsEstimationMode sets the SavingsEstimationMode field's value.
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 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 (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 (s *UpdatePreferencesOutput) SetMemberAccountDiscountVisibility(v string) *UpdatePreferencesOutput
SetMemberAccountDiscountVisibility sets the MemberAccountDiscountVisibility field's value.
func (s *UpdatePreferencesOutput) SetSavingsEstimationMode(v string) *UpdatePreferencesOutput
SetSavingsEstimationMode sets the SavingsEstimationMode field's value.
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 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 (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 (s *Usage) SetOperation(v string) *Usage
SetOperation sets the Operation field's value.
func (s *Usage) SetProductCode(v string) *Usage
SetProductCode sets the ProductCode field's value.
func (s *Usage) SetUnit(v string) *Usage
SetUnit sets the Unit field's value.
func (s *Usage) SetUsageAmount(v float64) *Usage
SetUsageAmount sets the UsageAmount field's value.
func (s *Usage) SetUsageType(v string) *Usage
SetUsageType sets the UsageType field's value.
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 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 (s *ValidationException) Code() string
Code returns the exception type name.
func (s *ValidationException) Error() string
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 (s *ValidationException) Message() string
Message returns the exception's message.
func (s *ValidationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ValidationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
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 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 (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 (s *ValidationExceptionDetail) SetFieldName(v string) *ValidationExceptionDetail
SetFieldName sets the FieldName field's value.
func (s *ValidationExceptionDetail) SetMessage(v string) *ValidationExceptionDetail
SetMessage sets the Message field's value.
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".