Documentation ¶
Overview ¶
Package savingsplans provides the client and types for making API requests to AWSSavingsPlans.
Savings Plans are a pricing model that offer significant savings on AWS usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For more information, see the AWS Savings Plans User Guide (https://docs.aws.amazon.com/savingsplans/latest/userguide/).
See https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28 for more information on this service.
See savingsplans package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/savingsplans/
Using the Client ¶
To use AWSSavingsPlans with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the AWSSavingsPlans client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/savingsplans/#New
Index ¶
- Constants
- type Client
- func (c *Client) CreateSavingsPlanRequest(input *CreateSavingsPlanInput) CreateSavingsPlanRequest
- func (c *Client) DescribeSavingsPlanRatesRequest(input *DescribeSavingsPlanRatesInput) DescribeSavingsPlanRatesRequest
- func (c *Client) DescribeSavingsPlansOfferingRatesRequest(input *DescribeSavingsPlansOfferingRatesInput) DescribeSavingsPlansOfferingRatesRequest
- func (c *Client) DescribeSavingsPlansOfferingsRequest(input *DescribeSavingsPlansOfferingsInput) DescribeSavingsPlansOfferingsRequest
- func (c *Client) DescribeSavingsPlansRequest(input *DescribeSavingsPlansInput) DescribeSavingsPlansRequest
- func (c *Client) ListTagsForResourceRequest(input *ListTagsForResourceInput) ListTagsForResourceRequest
- func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
- func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
- type CreateSavingsPlanInput
- type CreateSavingsPlanOutput
- type CreateSavingsPlanRequest
- type CreateSavingsPlanResponse
- type CurrencyCode
- type DescribeSavingsPlanRatesInput
- type DescribeSavingsPlanRatesOutput
- type DescribeSavingsPlanRatesRequest
- type DescribeSavingsPlanRatesResponse
- type DescribeSavingsPlansInput
- type DescribeSavingsPlansOfferingRatesInput
- type DescribeSavingsPlansOfferingRatesOutput
- type DescribeSavingsPlansOfferingRatesRequest
- type DescribeSavingsPlansOfferingRatesResponse
- type DescribeSavingsPlansOfferingsInput
- type DescribeSavingsPlansOfferingsOutput
- type DescribeSavingsPlansOfferingsRequest
- type DescribeSavingsPlansOfferingsResponse
- type DescribeSavingsPlansOutput
- type DescribeSavingsPlansRequest
- type DescribeSavingsPlansResponse
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type ListTagsForResourceRequest
- type ListTagsForResourceResponse
- type ParentSavingsPlanOffering
- type SavingsPlan
- type SavingsPlanFilter
- type SavingsPlanOffering
- type SavingsPlanOfferingFilterAttribute
- type SavingsPlanOfferingFilterElement
- type SavingsPlanOfferingProperty
- type SavingsPlanOfferingPropertyKey
- type SavingsPlanOfferingRate
- type SavingsPlanOfferingRateFilterElement
- type SavingsPlanOfferingRateProperty
- type SavingsPlanPaymentOption
- type SavingsPlanProductType
- type SavingsPlanRate
- type SavingsPlanRateFilter
- type SavingsPlanRateFilterAttribute
- type SavingsPlanRateFilterName
- type SavingsPlanRateProperty
- type SavingsPlanRatePropertyKey
- type SavingsPlanRateServiceCode
- type SavingsPlanRateUnit
- type SavingsPlanState
- type SavingsPlanType
- type SavingsPlansFilterName
- type TagResourceInput
- type TagResourceOutput
- type TagResourceRequest
- type TagResourceResponse
- type UntagResourceInput
- type UntagResourceOutput
- type UntagResourceRequest
- type UntagResourceResponse
Constants ¶
const ( ServiceName = "AWSSavingsPlans" // Service's name ServiceID = "Savingsplans" // Service's identifier EndpointsID = "savingsplans" // Service's Endpoint identifier )
const ( // ErrCodeInternalServerException for service response error code // "InternalServerException". // // An unexpected error occurred. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // A service quota has been exceeded. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeValidationException for service response error code // "ValidationException". // // One of the input parameters is not valid. ErrCodeValidationException = "ValidationException" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client provides the API operation methods for making requests to AWSSavingsPlans. See this package's package overview docs for details on the service.
The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
New creates a new instance of the client from the provided Config.
Example:
// Create a client from just a config. svc := savingsplans.New(myConfig)
func (*Client) CreateSavingsPlanRequest ¶
func (c *Client) CreateSavingsPlanRequest(input *CreateSavingsPlanInput) CreateSavingsPlanRequest
CreateSavingsPlanRequest returns a request value for making API operation for AWS Savings Plans.
Creates a Savings Plan.
// Example sending a request using CreateSavingsPlanRequest. req := client.CreateSavingsPlanRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/CreateSavingsPlan
func (*Client) DescribeSavingsPlanRatesRequest ¶
func (c *Client) DescribeSavingsPlanRatesRequest(input *DescribeSavingsPlanRatesInput) DescribeSavingsPlanRatesRequest
DescribeSavingsPlanRatesRequest returns a request value for making API operation for AWS Savings Plans.
Describes the specified Savings Plans rates.
// Example sending a request using DescribeSavingsPlanRatesRequest. req := client.DescribeSavingsPlanRatesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlanRates
func (*Client) DescribeSavingsPlansOfferingRatesRequest ¶
func (c *Client) DescribeSavingsPlansOfferingRatesRequest(input *DescribeSavingsPlansOfferingRatesInput) DescribeSavingsPlansOfferingRatesRequest
DescribeSavingsPlansOfferingRatesRequest returns a request value for making API operation for AWS Savings Plans.
Describes the specified Savings Plans offering rates.
// Example sending a request using DescribeSavingsPlansOfferingRatesRequest. req := client.DescribeSavingsPlansOfferingRatesRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates
func (*Client) DescribeSavingsPlansOfferingsRequest ¶
func (c *Client) DescribeSavingsPlansOfferingsRequest(input *DescribeSavingsPlansOfferingsInput) DescribeSavingsPlansOfferingsRequest
DescribeSavingsPlansOfferingsRequest returns a request value for making API operation for AWS Savings Plans.
Describes the specified Savings Plans offerings.
// Example sending a request using DescribeSavingsPlansOfferingsRequest. req := client.DescribeSavingsPlansOfferingsRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferings
func (*Client) DescribeSavingsPlansRequest ¶
func (c *Client) DescribeSavingsPlansRequest(input *DescribeSavingsPlansInput) DescribeSavingsPlansRequest
DescribeSavingsPlansRequest returns a request value for making API operation for AWS Savings Plans.
Describes the specified Savings Plans.
// Example sending a request using DescribeSavingsPlansRequest. req := client.DescribeSavingsPlansRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlans
func (*Client) ListTagsForResourceRequest ¶
func (c *Client) ListTagsForResourceRequest(input *ListTagsForResourceInput) ListTagsForResourceRequest
ListTagsForResourceRequest returns a request value for making API operation for AWS Savings Plans.
Lists the tags for the specified resource.
// Example sending a request using ListTagsForResourceRequest. req := client.ListTagsForResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ListTagsForResource
func (*Client) TagResourceRequest ¶
func (c *Client) TagResourceRequest(input *TagResourceInput) TagResourceRequest
TagResourceRequest returns a request value for making API operation for AWS Savings Plans.
Adds the specified tags to the specified resource.
// Example sending a request using TagResourceRequest. req := client.TagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/TagResource
func (*Client) UntagResourceRequest ¶
func (c *Client) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest
UntagResourceRequest returns a request value for making API operation for AWS Savings Plans.
Removes the specified tags from the specified resource.
// Example sending a request using UntagResourceRequest. req := client.UntagResourceRequest(params) resp, err := req.Send(context.TODO()) if err == nil { fmt.Println(resp) }
Please also see https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/UntagResource
type CreateSavingsPlanInput ¶
type CreateSavingsPlanInput struct { // Unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` // The hourly commitment, in USD. This is a value between 0.001 and 1 million. // You cannot specify more than three digits after the decimal point. // // Commitment is a required field Commitment *string `locationName:"commitment" type:"string" required:"true"` // The ID of the offering. // // SavingsPlanOfferingId is a required field SavingsPlanOfferingId *string `locationName:"savingsPlanOfferingId" type:"string" required:"true"` // One or more tags. Tags map[string]string `locationName:"tags" type:"map"` // The up-front payment amount. This is a whole number between 50 and 99 percent // of the total value of the Savings Plan. This parameter is supported only // if the payment option is Partial Upfront. UpfrontPaymentAmount *string `locationName:"upfrontPaymentAmount" type:"string"` // contains filtered or unexported fields }
func (CreateSavingsPlanInput) MarshalFields ¶
func (s CreateSavingsPlanInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateSavingsPlanInput) String ¶
func (s CreateSavingsPlanInput) String() string
String returns the string representation
func (*CreateSavingsPlanInput) Validate ¶
func (s *CreateSavingsPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateSavingsPlanOutput ¶
type CreateSavingsPlanOutput struct { // The ID of the Savings Plan. SavingsPlanId *string `locationName:"savingsPlanId" type:"string"` // contains filtered or unexported fields }
func (CreateSavingsPlanOutput) MarshalFields ¶
func (s CreateSavingsPlanOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (CreateSavingsPlanOutput) String ¶
func (s CreateSavingsPlanOutput) String() string
String returns the string representation
type CreateSavingsPlanRequest ¶
type CreateSavingsPlanRequest struct { *aws.Request Input *CreateSavingsPlanInput Copy func(*CreateSavingsPlanInput) CreateSavingsPlanRequest }
CreateSavingsPlanRequest is the request type for the CreateSavingsPlan API operation.
func (CreateSavingsPlanRequest) Send ¶
func (r CreateSavingsPlanRequest) Send(ctx context.Context) (*CreateSavingsPlanResponse, error)
Send marshals and sends the CreateSavingsPlan API request.
type CreateSavingsPlanResponse ¶
type CreateSavingsPlanResponse struct { *CreateSavingsPlanOutput // contains filtered or unexported fields }
CreateSavingsPlanResponse is the response type for the CreateSavingsPlan API operation.
func (*CreateSavingsPlanResponse) SDKResponseMetdata ¶
func (r *CreateSavingsPlanResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the CreateSavingsPlan request.
type CurrencyCode ¶
type CurrencyCode string
const ( CurrencyCodeCny CurrencyCode = "CNY" CurrencyCodeUsd CurrencyCode = "USD" )
Enum values for CurrencyCode
func (CurrencyCode) MarshalValue ¶
func (enum CurrencyCode) MarshalValue() (string, error)
func (CurrencyCode) MarshalValueBuf ¶
func (enum CurrencyCode) MarshalValueBuf(b []byte) ([]byte, error)
type DescribeSavingsPlanRatesInput ¶
type DescribeSavingsPlanRatesInput struct { // The filters. Filters []SavingsPlanRateFilter `locationName:"filters" type:"list"` // The maximum number of results to return with a single call. To retrieve additional // results, make another call with the returned token value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The ID of the Savings Plan. // // SavingsPlanId is a required field SavingsPlanId *string `locationName:"savingsPlanId" type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeSavingsPlanRatesInput) MarshalFields ¶
func (s DescribeSavingsPlanRatesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlanRatesInput) String ¶
func (s DescribeSavingsPlanRatesInput) String() string
String returns the string representation
func (*DescribeSavingsPlanRatesInput) Validate ¶
func (s *DescribeSavingsPlanRatesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeSavingsPlanRatesOutput ¶
type DescribeSavingsPlanRatesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // The ID of the Savings Plan. SavingsPlanId *string `locationName:"savingsPlanId" type:"string"` // Information about the Savings Plans rates. SearchResults []SavingsPlanRate `locationName:"searchResults" type:"list"` // contains filtered or unexported fields }
func (DescribeSavingsPlanRatesOutput) MarshalFields ¶
func (s DescribeSavingsPlanRatesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlanRatesOutput) String ¶
func (s DescribeSavingsPlanRatesOutput) String() string
String returns the string representation
type DescribeSavingsPlanRatesRequest ¶
type DescribeSavingsPlanRatesRequest struct { *aws.Request Input *DescribeSavingsPlanRatesInput Copy func(*DescribeSavingsPlanRatesInput) DescribeSavingsPlanRatesRequest }
DescribeSavingsPlanRatesRequest is the request type for the DescribeSavingsPlanRates API operation.
func (DescribeSavingsPlanRatesRequest) Send ¶
func (r DescribeSavingsPlanRatesRequest) Send(ctx context.Context) (*DescribeSavingsPlanRatesResponse, error)
Send marshals and sends the DescribeSavingsPlanRates API request.
type DescribeSavingsPlanRatesResponse ¶
type DescribeSavingsPlanRatesResponse struct { *DescribeSavingsPlanRatesOutput // contains filtered or unexported fields }
DescribeSavingsPlanRatesResponse is the response type for the DescribeSavingsPlanRates API operation.
func (*DescribeSavingsPlanRatesResponse) SDKResponseMetdata ¶
func (r *DescribeSavingsPlanRatesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeSavingsPlanRates request.
type DescribeSavingsPlansInput ¶
type DescribeSavingsPlansInput struct { // The filters. Filters []SavingsPlanFilter `locationName:"filters" type:"list"` // The maximum number of results to return with a single call. To retrieve additional // results, make another call with the returned token value. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The Amazon Resource Names (ARN) of the Savings Plans. SavingsPlanArns []string `locationName:"savingsPlanArns" type:"list"` // The IDs of the Savings Plans. SavingsPlanIds []string `locationName:"savingsPlanIds" type:"list"` // The states. States []SavingsPlanState `locationName:"states" type:"list"` // contains filtered or unexported fields }
func (DescribeSavingsPlansInput) MarshalFields ¶
func (s DescribeSavingsPlansInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlansInput) String ¶
func (s DescribeSavingsPlansInput) String() string
String returns the string representation
func (*DescribeSavingsPlansInput) Validate ¶
func (s *DescribeSavingsPlansInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeSavingsPlansOfferingRatesInput ¶
type DescribeSavingsPlansOfferingRatesInput struct { // The filters. Filters []SavingsPlanOfferingRateFilterElement `locationName:"filters" type:"list"` // The maximum number of results to return with a single call. To retrieve additional // results, make another call with the returned token value. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The specific AWS operation for the line item in the billing report. Operations []string `locationName:"operations" type:"list"` // The AWS products. Products []SavingsPlanProductType `locationName:"products" type:"list"` // The IDs of the offerings. SavingsPlanOfferingIds []string `locationName:"savingsPlanOfferingIds" type:"list"` // The payment options. SavingsPlanPaymentOptions []SavingsPlanPaymentOption `locationName:"savingsPlanPaymentOptions" type:"list"` // The plan types. SavingsPlanTypes []SavingsPlanType `locationName:"savingsPlanTypes" type:"list"` // The services. ServiceCodes []SavingsPlanRateServiceCode `locationName:"serviceCodes" type:"list"` // The usage details of the line item in the billing report. UsageTypes []string `locationName:"usageTypes" type:"list"` // contains filtered or unexported fields }
func (DescribeSavingsPlansOfferingRatesInput) MarshalFields ¶
func (s DescribeSavingsPlansOfferingRatesInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlansOfferingRatesInput) String ¶
func (s DescribeSavingsPlansOfferingRatesInput) String() string
String returns the string representation
type DescribeSavingsPlansOfferingRatesOutput ¶
type DescribeSavingsPlansOfferingRatesOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // Information about the Savings Plans offering rates. SearchResults []SavingsPlanOfferingRate `locationName:"searchResults" type:"list"` // contains filtered or unexported fields }
func (DescribeSavingsPlansOfferingRatesOutput) MarshalFields ¶
func (s DescribeSavingsPlansOfferingRatesOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlansOfferingRatesOutput) String ¶
func (s DescribeSavingsPlansOfferingRatesOutput) String() string
String returns the string representation
type DescribeSavingsPlansOfferingRatesRequest ¶
type DescribeSavingsPlansOfferingRatesRequest struct { *aws.Request Input *DescribeSavingsPlansOfferingRatesInput Copy func(*DescribeSavingsPlansOfferingRatesInput) DescribeSavingsPlansOfferingRatesRequest }
DescribeSavingsPlansOfferingRatesRequest is the request type for the DescribeSavingsPlansOfferingRates API operation.
func (DescribeSavingsPlansOfferingRatesRequest) Send ¶
func (r DescribeSavingsPlansOfferingRatesRequest) Send(ctx context.Context) (*DescribeSavingsPlansOfferingRatesResponse, error)
Send marshals and sends the DescribeSavingsPlansOfferingRates API request.
type DescribeSavingsPlansOfferingRatesResponse ¶
type DescribeSavingsPlansOfferingRatesResponse struct { *DescribeSavingsPlansOfferingRatesOutput // contains filtered or unexported fields }
DescribeSavingsPlansOfferingRatesResponse is the response type for the DescribeSavingsPlansOfferingRates API operation.
func (*DescribeSavingsPlansOfferingRatesResponse) SDKResponseMetdata ¶
func (r *DescribeSavingsPlansOfferingRatesResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeSavingsPlansOfferingRates request.
type DescribeSavingsPlansOfferingsInput ¶
type DescribeSavingsPlansOfferingsInput struct { // The currencies. Currencies []CurrencyCode `locationName:"currencies" type:"list"` // The descriptions. Descriptions []string `locationName:"descriptions" type:"list"` // The durations, in seconds. Durations []int64 `locationName:"durations" type:"list"` // The filters. Filters []SavingsPlanOfferingFilterElement `locationName:"filters" type:"list"` // The maximum number of results to return with a single call. To retrieve additional // results, make another call with the returned token value. MaxResults *int64 `locationName:"maxResults" type:"integer"` // The token for the next page of results. NextToken *string `locationName:"nextToken" type:"string"` // The IDs of the offerings. OfferingIds []string `locationName:"offeringIds" type:"list"` // The specific AWS operation for the line item in the billing report. Operations []string `locationName:"operations" type:"list"` // The payment options. PaymentOptions []SavingsPlanPaymentOption `locationName:"paymentOptions" type:"list"` // The plan type. PlanTypes []SavingsPlanType `locationName:"planTypes" type:"list"` // The product type. ProductType SavingsPlanProductType `locationName:"productType" type:"string" enum:"true"` // The services. ServiceCodes []string `locationName:"serviceCodes" type:"list"` // The usage details of the line item in the billing report. UsageTypes []string `locationName:"usageTypes" type:"list"` // contains filtered or unexported fields }
func (DescribeSavingsPlansOfferingsInput) MarshalFields ¶
func (s DescribeSavingsPlansOfferingsInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlansOfferingsInput) String ¶
func (s DescribeSavingsPlansOfferingsInput) String() string
String returns the string representation
type DescribeSavingsPlansOfferingsOutput ¶
type DescribeSavingsPlansOfferingsOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // Information about the Savings Plans offerings. SearchResults []SavingsPlanOffering `locationName:"searchResults" type:"list"` // contains filtered or unexported fields }
func (DescribeSavingsPlansOfferingsOutput) MarshalFields ¶
func (s DescribeSavingsPlansOfferingsOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlansOfferingsOutput) String ¶
func (s DescribeSavingsPlansOfferingsOutput) String() string
String returns the string representation
type DescribeSavingsPlansOfferingsRequest ¶
type DescribeSavingsPlansOfferingsRequest struct { *aws.Request Input *DescribeSavingsPlansOfferingsInput Copy func(*DescribeSavingsPlansOfferingsInput) DescribeSavingsPlansOfferingsRequest }
DescribeSavingsPlansOfferingsRequest is the request type for the DescribeSavingsPlansOfferings API operation.
func (DescribeSavingsPlansOfferingsRequest) Send ¶
func (r DescribeSavingsPlansOfferingsRequest) Send(ctx context.Context) (*DescribeSavingsPlansOfferingsResponse, error)
Send marshals and sends the DescribeSavingsPlansOfferings API request.
type DescribeSavingsPlansOfferingsResponse ¶
type DescribeSavingsPlansOfferingsResponse struct { *DescribeSavingsPlansOfferingsOutput // contains filtered or unexported fields }
DescribeSavingsPlansOfferingsResponse is the response type for the DescribeSavingsPlansOfferings API operation.
func (*DescribeSavingsPlansOfferingsResponse) SDKResponseMetdata ¶
func (r *DescribeSavingsPlansOfferingsResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeSavingsPlansOfferings request.
type DescribeSavingsPlansOutput ¶
type DescribeSavingsPlansOutput struct { // The token to use to retrieve the next page of results. This value is null // when there are no more results to return. NextToken *string `locationName:"nextToken" type:"string"` // Information about the Savings Plans. SavingsPlans []SavingsPlan `locationName:"savingsPlans" type:"list"` // contains filtered or unexported fields }
func (DescribeSavingsPlansOutput) MarshalFields ¶
func (s DescribeSavingsPlansOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (DescribeSavingsPlansOutput) String ¶
func (s DescribeSavingsPlansOutput) String() string
String returns the string representation
type DescribeSavingsPlansRequest ¶
type DescribeSavingsPlansRequest struct { *aws.Request Input *DescribeSavingsPlansInput Copy func(*DescribeSavingsPlansInput) DescribeSavingsPlansRequest }
DescribeSavingsPlansRequest is the request type for the DescribeSavingsPlans API operation.
func (DescribeSavingsPlansRequest) Send ¶
func (r DescribeSavingsPlansRequest) Send(ctx context.Context) (*DescribeSavingsPlansResponse, error)
Send marshals and sends the DescribeSavingsPlans API request.
type DescribeSavingsPlansResponse ¶
type DescribeSavingsPlansResponse struct { *DescribeSavingsPlansOutput // contains filtered or unexported fields }
DescribeSavingsPlansResponse is the response type for the DescribeSavingsPlans API operation.
func (*DescribeSavingsPlansResponse) SDKResponseMetdata ¶
func (r *DescribeSavingsPlansResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the DescribeSavingsPlans request.
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (ListTagsForResourceInput) MarshalFields ¶
func (s ListTagsForResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsForResourceInput) String ¶
func (s ListTagsForResourceInput) String() string
String returns the string representation
func (*ListTagsForResourceInput) Validate ¶
func (s *ListTagsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // Information about the tags. Tags map[string]string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
func (ListTagsForResourceOutput) MarshalFields ¶
func (s ListTagsForResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ListTagsForResourceOutput) String ¶
func (s ListTagsForResourceOutput) String() string
String returns the string representation
type ListTagsForResourceRequest ¶
type ListTagsForResourceRequest struct { *aws.Request Input *ListTagsForResourceInput Copy func(*ListTagsForResourceInput) ListTagsForResourceRequest }
ListTagsForResourceRequest is the request type for the ListTagsForResource API operation.
func (ListTagsForResourceRequest) Send ¶
func (r ListTagsForResourceRequest) Send(ctx context.Context) (*ListTagsForResourceResponse, error)
Send marshals and sends the ListTagsForResource API request.
type ListTagsForResourceResponse ¶
type ListTagsForResourceResponse struct { *ListTagsForResourceOutput // contains filtered or unexported fields }
ListTagsForResourceResponse is the response type for the ListTagsForResource API operation.
func (*ListTagsForResourceResponse) SDKResponseMetdata ¶
func (r *ListTagsForResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the ListTagsForResource request.
type ParentSavingsPlanOffering ¶
type ParentSavingsPlanOffering struct { // The currency. Currency CurrencyCode `locationName:"currency" type:"string" enum:"true"` // The duration, in seconds. DurationSeconds *int64 `locationName:"durationSeconds" type:"long"` // The ID of the offering. OfferingId *string `locationName:"offeringId" type:"string"` // The payment option. PaymentOption SavingsPlanPaymentOption `locationName:"paymentOption" type:"string" enum:"true"` // The description. PlanDescription *string `locationName:"planDescription" type:"string"` // The plan type. PlanType SavingsPlanType `locationName:"planType" type:"string" enum:"true"` // contains filtered or unexported fields }
Information about a Savings Plan offering.
func (ParentSavingsPlanOffering) MarshalFields ¶
func (s ParentSavingsPlanOffering) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (ParentSavingsPlanOffering) String ¶
func (s ParentSavingsPlanOffering) String() string
String returns the string representation
type SavingsPlan ¶
type SavingsPlan struct { // The hourly commitment, in USD. Commitment *string `locationName:"commitment" type:"string"` // The currency. Currency CurrencyCode `locationName:"currency" type:"string" enum:"true"` // The description. Description *string `locationName:"description" type:"string"` // The EC2 instance family. Ec2InstanceFamily *string `locationName:"ec2InstanceFamily" type:"string"` // The end time. End *string `locationName:"end" type:"string"` // The ID of the offering. OfferingId *string `locationName:"offeringId" type:"string"` // The payment option. PaymentOption SavingsPlanPaymentOption `locationName:"paymentOption" type:"string" enum:"true"` // The product types. ProductTypes []SavingsPlanProductType `locationName:"productTypes" type:"list"` // The recurring payment amount. RecurringPaymentAmount *string `locationName:"recurringPaymentAmount" type:"string"` // The AWS Region. Region *string `locationName:"region" type:"string"` // The Amazon Resource Name (ARN) of the Savings Plan. SavingsPlanArn *string `locationName:"savingsPlanArn" type:"string"` // The ID of the Savings Plan. SavingsPlanId *string `locationName:"savingsPlanId" type:"string"` // The plan type. SavingsPlanType SavingsPlanType `locationName:"savingsPlanType" type:"string" enum:"true"` // The start time. Start *string `locationName:"start" type:"string"` // The state. State SavingsPlanState `locationName:"state" type:"string" enum:"true"` // One or more tags. Tags map[string]string `locationName:"tags" type:"map"` // The duration of the term, in seconds. TermDurationInSeconds *int64 `locationName:"termDurationInSeconds" type:"long"` // The up-front payment amount. UpfrontPaymentAmount *string `locationName:"upfrontPaymentAmount" type:"string"` // contains filtered or unexported fields }
Information about a Savings Plan.
func (SavingsPlan) MarshalFields ¶
func (s SavingsPlan) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlan) String ¶
func (s SavingsPlan) String() string
String returns the string representation
type SavingsPlanFilter ¶
type SavingsPlanFilter struct { // The filter name. Name SavingsPlansFilterName `locationName:"name" type:"string" enum:"true"` // The filter value. Values []string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a filter.
func (SavingsPlanFilter) MarshalFields ¶
func (s SavingsPlanFilter) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanFilter) String ¶
func (s SavingsPlanFilter) String() string
String returns the string representation
type SavingsPlanOffering ¶
type SavingsPlanOffering struct { // The currency. Currency CurrencyCode `locationName:"currency" type:"string" enum:"true"` // The description. Description *string `locationName:"description" type:"string"` // The duration, in seconds. DurationSeconds *int64 `locationName:"durationSeconds" type:"long"` // The ID of the offering. OfferingId *string `locationName:"offeringId" type:"string"` // The specific AWS operation for the line item in the billing report. Operation *string `locationName:"operation" type:"string"` // The payment option. PaymentOption SavingsPlanPaymentOption `locationName:"paymentOption" type:"string" enum:"true"` // The plan type. PlanType SavingsPlanType `locationName:"planType" type:"string" enum:"true"` // The product type. ProductTypes []SavingsPlanProductType `locationName:"productTypes" type:"list"` // The properties. Properties []SavingsPlanOfferingProperty `locationName:"properties" type:"list"` // The service. ServiceCode *string `locationName:"serviceCode" type:"string"` // The usage details of the line item in the billing report. UsageType *string `locationName:"usageType" type:"string"` // contains filtered or unexported fields }
Information about a Savings Plan offering.
func (SavingsPlanOffering) MarshalFields ¶
func (s SavingsPlanOffering) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanOffering) String ¶
func (s SavingsPlanOffering) String() string
String returns the string representation
type SavingsPlanOfferingFilterAttribute ¶
type SavingsPlanOfferingFilterAttribute string
const ( SavingsPlanOfferingFilterAttributeRegion SavingsPlanOfferingFilterAttribute = "region" SavingsPlanOfferingFilterAttributeInstanceFamily SavingsPlanOfferingFilterAttribute = "instanceFamily" )
Enum values for SavingsPlanOfferingFilterAttribute
func (SavingsPlanOfferingFilterAttribute) MarshalValue ¶
func (enum SavingsPlanOfferingFilterAttribute) MarshalValue() (string, error)
func (SavingsPlanOfferingFilterAttribute) MarshalValueBuf ¶
func (enum SavingsPlanOfferingFilterAttribute) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanOfferingFilterElement ¶
type SavingsPlanOfferingFilterElement struct { // The filter name. Name SavingsPlanOfferingFilterAttribute `locationName:"name" type:"string" enum:"true"` // The filter values. Values []string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a filter.
func (SavingsPlanOfferingFilterElement) MarshalFields ¶
func (s SavingsPlanOfferingFilterElement) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanOfferingFilterElement) String ¶
func (s SavingsPlanOfferingFilterElement) String() string
String returns the string representation
type SavingsPlanOfferingProperty ¶
type SavingsPlanOfferingProperty struct { // The property name. Name SavingsPlanOfferingPropertyKey `locationName:"name" type:"string" enum:"true"` // The property value. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a property.
func (SavingsPlanOfferingProperty) MarshalFields ¶
func (s SavingsPlanOfferingProperty) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanOfferingProperty) String ¶
func (s SavingsPlanOfferingProperty) String() string
String returns the string representation
type SavingsPlanOfferingPropertyKey ¶
type SavingsPlanOfferingPropertyKey string
const ( SavingsPlanOfferingPropertyKeyRegion SavingsPlanOfferingPropertyKey = "region" SavingsPlanOfferingPropertyKeyInstanceFamily SavingsPlanOfferingPropertyKey = "instanceFamily" )
Enum values for SavingsPlanOfferingPropertyKey
func (SavingsPlanOfferingPropertyKey) MarshalValue ¶
func (enum SavingsPlanOfferingPropertyKey) MarshalValue() (string, error)
func (SavingsPlanOfferingPropertyKey) MarshalValueBuf ¶
func (enum SavingsPlanOfferingPropertyKey) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanOfferingRate ¶
type SavingsPlanOfferingRate struct { // The specific AWS operation for the line item in the billing report. Operation *string `locationName:"operation" type:"string"` // The product type. ProductType SavingsPlanProductType `locationName:"productType" type:"string" enum:"true"` // The properties. Properties []SavingsPlanOfferingRateProperty `locationName:"properties" type:"list"` // The Savings Plan rate. Rate *string `locationName:"rate" type:"string"` // The Savings Plan offering. SavingsPlanOffering *ParentSavingsPlanOffering `locationName:"savingsPlanOffering" type:"structure"` // The service. ServiceCode SavingsPlanRateServiceCode `locationName:"serviceCode" type:"string" enum:"true"` // The unit. Unit SavingsPlanRateUnit `locationName:"unit" type:"string" enum:"true"` // The usage details of the line item in the billing report. UsageType *string `locationName:"usageType" type:"string"` // contains filtered or unexported fields }
Information about a Savings Plan offering rate.
func (SavingsPlanOfferingRate) MarshalFields ¶
func (s SavingsPlanOfferingRate) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanOfferingRate) String ¶
func (s SavingsPlanOfferingRate) String() string
String returns the string representation
type SavingsPlanOfferingRateFilterElement ¶
type SavingsPlanOfferingRateFilterElement struct { // The filter name. Name SavingsPlanRateFilterAttribute `locationName:"name" type:"string" enum:"true"` // The filter values. Values []string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a filter.
func (SavingsPlanOfferingRateFilterElement) MarshalFields ¶
func (s SavingsPlanOfferingRateFilterElement) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanOfferingRateFilterElement) String ¶
func (s SavingsPlanOfferingRateFilterElement) String() string
String returns the string representation
type SavingsPlanOfferingRateProperty ¶
type SavingsPlanOfferingRateProperty struct { // The property name. Name *string `locationName:"name" type:"string"` // The property value. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a property.
func (SavingsPlanOfferingRateProperty) MarshalFields ¶
func (s SavingsPlanOfferingRateProperty) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanOfferingRateProperty) String ¶
func (s SavingsPlanOfferingRateProperty) String() string
String returns the string representation
type SavingsPlanPaymentOption ¶
type SavingsPlanPaymentOption string
const ( SavingsPlanPaymentOptionAllUpfront SavingsPlanPaymentOption = "All Upfront" SavingsPlanPaymentOptionPartialUpfront SavingsPlanPaymentOption = "Partial Upfront" SavingsPlanPaymentOptionNoUpfront SavingsPlanPaymentOption = "No Upfront" )
Enum values for SavingsPlanPaymentOption
func (SavingsPlanPaymentOption) MarshalValue ¶
func (enum SavingsPlanPaymentOption) MarshalValue() (string, error)
func (SavingsPlanPaymentOption) MarshalValueBuf ¶
func (enum SavingsPlanPaymentOption) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanProductType ¶
type SavingsPlanProductType string
const ( SavingsPlanProductTypeEc2 SavingsPlanProductType = "EC2" SavingsPlanProductTypeFargate SavingsPlanProductType = "Fargate" )
Enum values for SavingsPlanProductType
func (SavingsPlanProductType) MarshalValue ¶
func (enum SavingsPlanProductType) MarshalValue() (string, error)
func (SavingsPlanProductType) MarshalValueBuf ¶
func (enum SavingsPlanProductType) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanRate ¶
type SavingsPlanRate struct { // The currency. Currency CurrencyCode `locationName:"currency" type:"string" enum:"true"` // The specific AWS operation for the line item in the billing report. Operation *string `locationName:"operation" type:"string"` // The product type. ProductType SavingsPlanProductType `locationName:"productType" type:"string" enum:"true"` // The properties. Properties []SavingsPlanRateProperty `locationName:"properties" type:"list"` // The rate. Rate *string `locationName:"rate" type:"string"` // The service. ServiceCode SavingsPlanRateServiceCode `locationName:"serviceCode" type:"string" enum:"true"` // The unit. Unit SavingsPlanRateUnit `locationName:"unit" type:"string" enum:"true"` // The usage details of the line item in the billing report. UsageType *string `locationName:"usageType" type:"string"` // contains filtered or unexported fields }
Information about a Savings Plan rate.
func (SavingsPlanRate) MarshalFields ¶
func (s SavingsPlanRate) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanRate) String ¶
func (s SavingsPlanRate) String() string
String returns the string representation
type SavingsPlanRateFilter ¶
type SavingsPlanRateFilter struct { // The filter name. Name SavingsPlanRateFilterName `locationName:"name" type:"string" enum:"true"` // The filter values. Values []string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a filter.
func (SavingsPlanRateFilter) MarshalFields ¶
func (s SavingsPlanRateFilter) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanRateFilter) String ¶
func (s SavingsPlanRateFilter) String() string
String returns the string representation
type SavingsPlanRateFilterAttribute ¶
type SavingsPlanRateFilterAttribute string
const ( SavingsPlanRateFilterAttributeRegion SavingsPlanRateFilterAttribute = "region" SavingsPlanRateFilterAttributeInstanceFamily SavingsPlanRateFilterAttribute = "instanceFamily" SavingsPlanRateFilterAttributeInstanceType SavingsPlanRateFilterAttribute = "instanceType" SavingsPlanRateFilterAttributeProductDescription SavingsPlanRateFilterAttribute = "productDescription" SavingsPlanRateFilterAttributeTenancy SavingsPlanRateFilterAttribute = "tenancy" SavingsPlanRateFilterAttributeProductId SavingsPlanRateFilterAttribute = "productId" )
Enum values for SavingsPlanRateFilterAttribute
func (SavingsPlanRateFilterAttribute) MarshalValue ¶
func (enum SavingsPlanRateFilterAttribute) MarshalValue() (string, error)
func (SavingsPlanRateFilterAttribute) MarshalValueBuf ¶
func (enum SavingsPlanRateFilterAttribute) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanRateFilterName ¶
type SavingsPlanRateFilterName string
const ( SavingsPlanRateFilterNameRegion SavingsPlanRateFilterName = "region" SavingsPlanRateFilterNameInstanceType SavingsPlanRateFilterName = "instanceType" SavingsPlanRateFilterNameProductDescription SavingsPlanRateFilterName = "productDescription" SavingsPlanRateFilterNameTenancy SavingsPlanRateFilterName = "tenancy" SavingsPlanRateFilterNameProductType SavingsPlanRateFilterName = "productType" SavingsPlanRateFilterNameServiceCode SavingsPlanRateFilterName = "serviceCode" SavingsPlanRateFilterNameUsageType SavingsPlanRateFilterName = "usageType" SavingsPlanRateFilterNameOperation SavingsPlanRateFilterName = "operation" )
Enum values for SavingsPlanRateFilterName
func (SavingsPlanRateFilterName) MarshalValue ¶
func (enum SavingsPlanRateFilterName) MarshalValue() (string, error)
func (SavingsPlanRateFilterName) MarshalValueBuf ¶
func (enum SavingsPlanRateFilterName) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanRateProperty ¶
type SavingsPlanRateProperty struct { // The property name. Name SavingsPlanRatePropertyKey `locationName:"name" type:"string" enum:"true"` // The property value. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a property.
func (SavingsPlanRateProperty) MarshalFields ¶
func (s SavingsPlanRateProperty) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (SavingsPlanRateProperty) String ¶
func (s SavingsPlanRateProperty) String() string
String returns the string representation
type SavingsPlanRatePropertyKey ¶
type SavingsPlanRatePropertyKey string
const ( SavingsPlanRatePropertyKeyRegion SavingsPlanRatePropertyKey = "region" SavingsPlanRatePropertyKeyInstanceType SavingsPlanRatePropertyKey = "instanceType" SavingsPlanRatePropertyKeyInstanceFamily SavingsPlanRatePropertyKey = "instanceFamily" SavingsPlanRatePropertyKeyProductDescription SavingsPlanRatePropertyKey = "productDescription" SavingsPlanRatePropertyKeyTenancy SavingsPlanRatePropertyKey = "tenancy" )
Enum values for SavingsPlanRatePropertyKey
func (SavingsPlanRatePropertyKey) MarshalValue ¶
func (enum SavingsPlanRatePropertyKey) MarshalValue() (string, error)
func (SavingsPlanRatePropertyKey) MarshalValueBuf ¶
func (enum SavingsPlanRatePropertyKey) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanRateServiceCode ¶
type SavingsPlanRateServiceCode string
const ( SavingsPlanRateServiceCodeAmazonEc2 SavingsPlanRateServiceCode = "AmazonEC2" SavingsPlanRateServiceCodeAmazonEcs SavingsPlanRateServiceCode = "AmazonECS" )
Enum values for SavingsPlanRateServiceCode
func (SavingsPlanRateServiceCode) MarshalValue ¶
func (enum SavingsPlanRateServiceCode) MarshalValue() (string, error)
func (SavingsPlanRateServiceCode) MarshalValueBuf ¶
func (enum SavingsPlanRateServiceCode) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanRateUnit ¶
type SavingsPlanRateUnit string
const (
SavingsPlanRateUnitHrs SavingsPlanRateUnit = "Hrs"
)
Enum values for SavingsPlanRateUnit
func (SavingsPlanRateUnit) MarshalValue ¶
func (enum SavingsPlanRateUnit) MarshalValue() (string, error)
func (SavingsPlanRateUnit) MarshalValueBuf ¶
func (enum SavingsPlanRateUnit) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanState ¶
type SavingsPlanState string
const ( SavingsPlanStatePaymentPending SavingsPlanState = "payment-pending" SavingsPlanStatePaymentFailed SavingsPlanState = "payment-failed" SavingsPlanStateActive SavingsPlanState = "active" SavingsPlanStateRetired SavingsPlanState = "retired" )
Enum values for SavingsPlanState
func (SavingsPlanState) MarshalValue ¶
func (enum SavingsPlanState) MarshalValue() (string, error)
func (SavingsPlanState) MarshalValueBuf ¶
func (enum SavingsPlanState) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlanType ¶
type SavingsPlanType string
const ( SavingsPlanTypeCompute SavingsPlanType = "Compute" SavingsPlanTypeEc2instance SavingsPlanType = "EC2Instance" )
Enum values for SavingsPlanType
func (SavingsPlanType) MarshalValue ¶
func (enum SavingsPlanType) MarshalValue() (string, error)
func (SavingsPlanType) MarshalValueBuf ¶
func (enum SavingsPlanType) MarshalValueBuf(b []byte) ([]byte, error)
type SavingsPlansFilterName ¶
type SavingsPlansFilterName string
const ( SavingsPlansFilterNameRegion SavingsPlansFilterName = "region" SavingsPlansFilterNameEc2InstanceFamily SavingsPlansFilterName = "ec2-instance-family" SavingsPlansFilterNameCommitment SavingsPlansFilterName = "commitment" SavingsPlansFilterNameUpfront SavingsPlansFilterName = "upfront" SavingsPlansFilterNameTerm SavingsPlansFilterName = "term" SavingsPlansFilterNameSavingsPlanType SavingsPlansFilterName = "savings-plan-type" SavingsPlansFilterNamePaymentOption SavingsPlansFilterName = "payment-option" SavingsPlansFilterNameStart SavingsPlansFilterName = "start" SavingsPlansFilterNameEnd SavingsPlansFilterName = "end" )
Enum values for SavingsPlansFilterName
func (SavingsPlansFilterName) MarshalValue ¶
func (enum SavingsPlansFilterName) MarshalValue() (string, error)
func (SavingsPlansFilterName) MarshalValueBuf ¶
func (enum SavingsPlansFilterName) MarshalValueBuf(b []byte) ([]byte, error)
type TagResourceInput ¶
type TagResourceInput struct { // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` // One or more tags. For example, { "tags": {"key1":"value1", "key2":"value2"} // }. // // Tags is a required field Tags map[string]string `locationName:"tags" type:"map" required:"true"` // contains filtered or unexported fields }
func (TagResourceInput) MarshalFields ¶
func (s TagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceInput) String ¶
func (s TagResourceInput) String() string
String returns the string representation
func (*TagResourceInput) Validate ¶
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput ¶
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (TagResourceOutput) MarshalFields ¶
func (s TagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (TagResourceOutput) String ¶
func (s TagResourceOutput) String() string
String returns the string representation
type TagResourceRequest ¶
type TagResourceRequest struct { *aws.Request Input *TagResourceInput Copy func(*TagResourceInput) TagResourceRequest }
TagResourceRequest is the request type for the TagResource API operation.
func (TagResourceRequest) Send ¶
func (r TagResourceRequest) Send(ctx context.Context) (*TagResourceResponse, error)
Send marshals and sends the TagResource API request.
type TagResourceResponse ¶
type TagResourceResponse struct { *TagResourceOutput // contains filtered or unexported fields }
TagResourceResponse is the response type for the TagResource API operation.
func (*TagResourceResponse) SDKResponseMetdata ¶
func (r *TagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the TagResource request.
type UntagResourceInput ¶
type UntagResourceInput struct { // The Amazon Resource Name (ARN) of the resource. // // ResourceArn is a required field ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` // The tag keys. // // TagKeys is a required field TagKeys []string `locationName:"tagKeys" type:"list" required:"true"` // contains filtered or unexported fields }
func (UntagResourceInput) MarshalFields ¶
func (s UntagResourceInput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceInput) String ¶
func (s UntagResourceInput) String() string
String returns the string representation
func (*UntagResourceInput) Validate ¶
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput ¶
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (UntagResourceOutput) MarshalFields ¶
func (s UntagResourceOutput) MarshalFields(e protocol.FieldEncoder) error
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
func (UntagResourceOutput) String ¶
func (s UntagResourceOutput) String() string
String returns the string representation
type UntagResourceRequest ¶
type UntagResourceRequest struct { *aws.Request Input *UntagResourceInput Copy func(*UntagResourceInput) UntagResourceRequest }
UntagResourceRequest is the request type for the UntagResource API operation.
func (UntagResourceRequest) Send ¶
func (r UntagResourceRequest) Send(ctx context.Context) (*UntagResourceResponse, error)
Send marshals and sends the UntagResource API request.
type UntagResourceResponse ¶
type UntagResourceResponse struct { *UntagResourceOutput // contains filtered or unexported fields }
UntagResourceResponse is the response type for the UntagResource API operation.
func (*UntagResourceResponse) SDKResponseMetdata ¶
func (r *UntagResourceResponse) SDKResponseMetdata() *aws.Response
SDKResponseMetdata returns the response metadata for the UntagResource request.
Source Files ¶
- api_client.go
- api_doc.go
- api_enums.go
- api_errors.go
- api_op_CreateSavingsPlan.go
- api_op_DescribeSavingsPlanRates.go
- api_op_DescribeSavingsPlans.go
- api_op_DescribeSavingsPlansOfferingRates.go
- api_op_DescribeSavingsPlansOfferings.go
- api_op_ListTagsForResource.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_types.go
Directories ¶
Path | Synopsis |
---|---|
Package savingsplansiface provides an interface to enable mocking the AWS Savings Plans service client for testing your code.
|
Package savingsplansiface provides an interface to enable mocking the AWS Savings Plans service client for testing your code. |