func CurrencyCode_Values() []string
CurrencyCode_Values returns all elements of the CurrencyCode enum
func SavingsPlanOfferingFilterAttribute_Values() []string
SavingsPlanOfferingFilterAttribute_Values returns all elements of the SavingsPlanOfferingFilterAttribute enum
func SavingsPlanOfferingPropertyKey_Values() []string
SavingsPlanOfferingPropertyKey_Values returns all elements of the SavingsPlanOfferingPropertyKey enum
func SavingsPlanPaymentOption_Values() []string
SavingsPlanPaymentOption_Values returns all elements of the SavingsPlanPaymentOption enum
func SavingsPlanProductType_Values() []string
SavingsPlanProductType_Values returns all elements of the SavingsPlanProductType enum
func SavingsPlanRateFilterAttribute_Values() []string
SavingsPlanRateFilterAttribute_Values returns all elements of the SavingsPlanRateFilterAttribute enum
func SavingsPlanRateFilterName_Values() []string
SavingsPlanRateFilterName_Values returns all elements of the SavingsPlanRateFilterName enum
func SavingsPlanRatePropertyKey_Values() []string
SavingsPlanRatePropertyKey_Values returns all elements of the SavingsPlanRatePropertyKey enum
func SavingsPlanRateServiceCode_Values() []string
SavingsPlanRateServiceCode_Values returns all elements of the SavingsPlanRateServiceCode enum
func SavingsPlanRateUnit_Values() []string
SavingsPlanRateUnit_Values returns all elements of the SavingsPlanRateUnit enum
func SavingsPlanState_Values() []string
SavingsPlanState_Values returns all elements of the SavingsPlanState enum
func SavingsPlanType_Values() []string
SavingsPlanType_Values returns all elements of the SavingsPlanType enum
func SavingsPlansFilterName_Values() []string
SavingsPlansFilterName_Values returns all elements of the SavingsPlansFilterName enum
type CreateSavingsPlanInput struct { // A 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 the same currency of the savingsPlanOfferingId. // This is a value between 0.001 and 1 million. You cannot specify more than // five digits after the decimal point. // // Commitment is a required field Commitment *string `locationName:"commitment" type:"string" required:"true"` // The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ). PurchaseTime *time.Time `locationName:"purchaseTime" type:"timestamp"` // 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 only supported // if the payment option is Partial Upfront. UpfrontPaymentAmount *string `locationName:"upfrontPaymentAmount" type:"string"` // contains filtered or unexported fields }
func (s CreateSavingsPlanInput) 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 *CreateSavingsPlanInput) SetClientToken(v string) *CreateSavingsPlanInput
SetClientToken sets the ClientToken field's value.
func (s *CreateSavingsPlanInput) SetCommitment(v string) *CreateSavingsPlanInput
SetCommitment sets the Commitment field's value.
func (s *CreateSavingsPlanInput) SetPurchaseTime(v time.Time) *CreateSavingsPlanInput
SetPurchaseTime sets the PurchaseTime field's value.
func (s *CreateSavingsPlanInput) SetSavingsPlanOfferingId(v string) *CreateSavingsPlanInput
SetSavingsPlanOfferingId sets the SavingsPlanOfferingId field's value.
func (s *CreateSavingsPlanInput) SetTags(v map[string]*string) *CreateSavingsPlanInput
SetTags sets the Tags field's value.
func (s *CreateSavingsPlanInput) SetUpfrontPaymentAmount(v string) *CreateSavingsPlanInput
SetUpfrontPaymentAmount sets the UpfrontPaymentAmount field's value.
func (s CreateSavingsPlanInput) 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 *CreateSavingsPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateSavingsPlanOutput struct { // The ID of the Savings Plan. SavingsPlanId *string `locationName:"savingsPlanId" type:"string"` // contains filtered or unexported fields }
func (s CreateSavingsPlanOutput) 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 *CreateSavingsPlanOutput) SetSavingsPlanId(v string) *CreateSavingsPlanOutput
SetSavingsPlanId sets the SavingsPlanId field's value.
func (s CreateSavingsPlanOutput) 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 DeleteQueuedSavingsPlanInput struct { // 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 (s DeleteQueuedSavingsPlanInput) 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 *DeleteQueuedSavingsPlanInput) SetSavingsPlanId(v string) *DeleteQueuedSavingsPlanInput
SetSavingsPlanId sets the SavingsPlanId field's value.
func (s DeleteQueuedSavingsPlanInput) 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 *DeleteQueuedSavingsPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteQueuedSavingsPlanOutput struct {
// contains filtered or unexported fields
}
func (s DeleteQueuedSavingsPlanOutput) 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 DeleteQueuedSavingsPlanOutput) 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 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 (s DescribeSavingsPlanRatesInput) 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 *DescribeSavingsPlanRatesInput) SetFilters(v []*SavingsPlanRateFilter) *DescribeSavingsPlanRatesInput
SetFilters sets the Filters field's value.
func (s *DescribeSavingsPlanRatesInput) SetMaxResults(v int64) *DescribeSavingsPlanRatesInput
SetMaxResults sets the MaxResults field's value.
func (s *DescribeSavingsPlanRatesInput) SetNextToken(v string) *DescribeSavingsPlanRatesInput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlanRatesInput) SetSavingsPlanId(v string) *DescribeSavingsPlanRatesInput
SetSavingsPlanId sets the SavingsPlanId field's value.
func (s DescribeSavingsPlanRatesInput) 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 *DescribeSavingsPlanRatesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 Plan rates. SearchResults []*SavingsPlanRate `locationName:"searchResults" type:"list"` // contains filtered or unexported fields }
func (s DescribeSavingsPlanRatesOutput) 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 *DescribeSavingsPlanRatesOutput) SetNextToken(v string) *DescribeSavingsPlanRatesOutput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlanRatesOutput) SetSavingsPlanId(v string) *DescribeSavingsPlanRatesOutput
SetSavingsPlanId sets the SavingsPlanId field's value.
func (s *DescribeSavingsPlanRatesOutput) SetSearchResults(v []*SavingsPlanRate) *DescribeSavingsPlanRatesOutput
SetSearchResults sets the SearchResults field's value.
func (s DescribeSavingsPlanRatesOutput) 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 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 current states of the Savings Plans. States []*string `locationName:"states" type:"list" enum:"SavingsPlanState"` // contains filtered or unexported fields }
func (s DescribeSavingsPlansInput) 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 *DescribeSavingsPlansInput) SetFilters(v []*SavingsPlanFilter) *DescribeSavingsPlansInput
SetFilters sets the Filters field's value.
func (s *DescribeSavingsPlansInput) SetMaxResults(v int64) *DescribeSavingsPlansInput
SetMaxResults sets the MaxResults field's value.
func (s *DescribeSavingsPlansInput) SetNextToken(v string) *DescribeSavingsPlansInput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlansInput) SetSavingsPlanArns(v []*string) *DescribeSavingsPlansInput
SetSavingsPlanArns sets the SavingsPlanArns field's value.
func (s *DescribeSavingsPlansInput) SetSavingsPlanIds(v []*string) *DescribeSavingsPlansInput
SetSavingsPlanIds sets the SavingsPlanIds field's value.
func (s *DescribeSavingsPlansInput) SetStates(v []*string) *DescribeSavingsPlansInput
SetStates sets the States field's value.
func (s DescribeSavingsPlansInput) 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 *DescribeSavingsPlansInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
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 Amazon Web Services operation for the line item in the billing // report. Operations []*string `locationName:"operations" type:"list"` // The Amazon Web Services products. Products []*string `locationName:"products" type:"list" enum:"SavingsPlanProductType"` // The IDs of the offerings. SavingsPlanOfferingIds []*string `locationName:"savingsPlanOfferingIds" type:"list"` // The payment options. SavingsPlanPaymentOptions []*string `locationName:"savingsPlanPaymentOptions" type:"list" enum:"SavingsPlanPaymentOption"` // The plan types. SavingsPlanTypes []*string `locationName:"savingsPlanTypes" type:"list" enum:"SavingsPlanType"` // The services. ServiceCodes []*string `locationName:"serviceCodes" type:"list" enum:"SavingsPlanRateServiceCode"` // The usage details of the line item in the billing report. UsageTypes []*string `locationName:"usageTypes" type:"list"` // contains filtered or unexported fields }
func (s DescribeSavingsPlansOfferingRatesInput) 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 *DescribeSavingsPlansOfferingRatesInput) SetFilters(v []*SavingsPlanOfferingRateFilterElement) *DescribeSavingsPlansOfferingRatesInput
SetFilters sets the Filters field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetMaxResults(v int64) *DescribeSavingsPlansOfferingRatesInput
SetMaxResults sets the MaxResults field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetNextToken(v string) *DescribeSavingsPlansOfferingRatesInput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetOperations(v []*string) *DescribeSavingsPlansOfferingRatesInput
SetOperations sets the Operations field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetProducts(v []*string) *DescribeSavingsPlansOfferingRatesInput
SetProducts sets the Products field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanOfferingIds(v []*string) *DescribeSavingsPlansOfferingRatesInput
SetSavingsPlanOfferingIds sets the SavingsPlanOfferingIds field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanPaymentOptions(v []*string) *DescribeSavingsPlansOfferingRatesInput
SetSavingsPlanPaymentOptions sets the SavingsPlanPaymentOptions field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanTypes(v []*string) *DescribeSavingsPlansOfferingRatesInput
SetSavingsPlanTypes sets the SavingsPlanTypes field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetServiceCodes(v []*string) *DescribeSavingsPlansOfferingRatesInput
SetServiceCodes sets the ServiceCodes field's value.
func (s *DescribeSavingsPlansOfferingRatesInput) SetUsageTypes(v []*string) *DescribeSavingsPlansOfferingRatesInput
SetUsageTypes sets the UsageTypes field's value.
func (s DescribeSavingsPlansOfferingRatesInput) 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 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 (s DescribeSavingsPlansOfferingRatesOutput) 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 *DescribeSavingsPlansOfferingRatesOutput) SetNextToken(v string) *DescribeSavingsPlansOfferingRatesOutput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlansOfferingRatesOutput) SetSearchResults(v []*SavingsPlanOfferingRate) *DescribeSavingsPlansOfferingRatesOutput
SetSearchResults sets the SearchResults field's value.
func (s DescribeSavingsPlansOfferingRatesOutput) 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 DescribeSavingsPlansOfferingsInput struct { // The currencies. Currencies []*string `locationName:"currencies" type:"list" enum:"CurrencyCode"` // The descriptions. Descriptions []*string `locationName:"descriptions" type:"list"` // The duration, 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 Amazon Web Services operation for the line item in the billing // report. Operations []*string `locationName:"operations" type:"list"` // The payment options. PaymentOptions []*string `locationName:"paymentOptions" type:"list" enum:"SavingsPlanPaymentOption"` // The plan types. PlanTypes []*string `locationName:"planTypes" type:"list" enum:"SavingsPlanType"` // The product type. ProductType *string `locationName:"productType" type:"string" enum:"SavingsPlanProductType"` // 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 (s DescribeSavingsPlansOfferingsInput) 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 *DescribeSavingsPlansOfferingsInput) SetCurrencies(v []*string) *DescribeSavingsPlansOfferingsInput
SetCurrencies sets the Currencies field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetDescriptions(v []*string) *DescribeSavingsPlansOfferingsInput
SetDescriptions sets the Descriptions field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetDurations(v []*int64) *DescribeSavingsPlansOfferingsInput
SetDurations sets the Durations field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetFilters(v []*SavingsPlanOfferingFilterElement) *DescribeSavingsPlansOfferingsInput
SetFilters sets the Filters field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetMaxResults(v int64) *DescribeSavingsPlansOfferingsInput
SetMaxResults sets the MaxResults field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetNextToken(v string) *DescribeSavingsPlansOfferingsInput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetOfferingIds(v []*string) *DescribeSavingsPlansOfferingsInput
SetOfferingIds sets the OfferingIds field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetOperations(v []*string) *DescribeSavingsPlansOfferingsInput
SetOperations sets the Operations field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetPaymentOptions(v []*string) *DescribeSavingsPlansOfferingsInput
SetPaymentOptions sets the PaymentOptions field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetPlanTypes(v []*string) *DescribeSavingsPlansOfferingsInput
SetPlanTypes sets the PlanTypes field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetProductType(v string) *DescribeSavingsPlansOfferingsInput
SetProductType sets the ProductType field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetServiceCodes(v []*string) *DescribeSavingsPlansOfferingsInput
SetServiceCodes sets the ServiceCodes field's value.
func (s *DescribeSavingsPlansOfferingsInput) SetUsageTypes(v []*string) *DescribeSavingsPlansOfferingsInput
SetUsageTypes sets the UsageTypes field's value.
func (s DescribeSavingsPlansOfferingsInput) 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 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 (s DescribeSavingsPlansOfferingsOutput) 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 *DescribeSavingsPlansOfferingsOutput) SetNextToken(v string) *DescribeSavingsPlansOfferingsOutput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlansOfferingsOutput) SetSearchResults(v []*SavingsPlanOffering) *DescribeSavingsPlansOfferingsOutput
SetSearchResults sets the SearchResults field's value.
func (s DescribeSavingsPlansOfferingsOutput) 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 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 (s DescribeSavingsPlansOutput) 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 *DescribeSavingsPlansOutput) SetNextToken(v string) *DescribeSavingsPlansOutput
SetNextToken sets the NextToken field's value.
func (s *DescribeSavingsPlansOutput) SetSavingsPlans(v []*SavingsPlan) *DescribeSavingsPlansOutput
SetSavingsPlans sets the SavingsPlans field's value.
func (s DescribeSavingsPlansOutput) 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 unexpected error occurred.
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 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 (s ListTagsForResourceInput) 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 *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s ListTagsForResourceInput) 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 *ListTagsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForResourceOutput struct { // Information about the tags. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
func (s ListTagsForResourceOutput) 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 *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput
SetTags sets the Tags field's value.
func (s ListTagsForResourceOutput) 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 ParentSavingsPlanOffering struct { // The currency. Currency *string `locationName:"currency" type:"string" enum:"CurrencyCode"` // 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 *string `locationName:"paymentOption" type:"string" enum:"SavingsPlanPaymentOption"` // The description. PlanDescription *string `locationName:"planDescription" type:"string"` // The plan type. PlanType *string `locationName:"planType" type:"string" enum:"SavingsPlanType"` // contains filtered or unexported fields }
Information about a Savings Plan offering.
func (s ParentSavingsPlanOffering) 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 *ParentSavingsPlanOffering) SetCurrency(v string) *ParentSavingsPlanOffering
SetCurrency sets the Currency field's value.
func (s *ParentSavingsPlanOffering) SetDurationSeconds(v int64) *ParentSavingsPlanOffering
SetDurationSeconds sets the DurationSeconds field's value.
func (s *ParentSavingsPlanOffering) SetOfferingId(v string) *ParentSavingsPlanOffering
SetOfferingId sets the OfferingId field's value.
func (s *ParentSavingsPlanOffering) SetPaymentOption(v string) *ParentSavingsPlanOffering
SetPaymentOption sets the PaymentOption field's value.
func (s *ParentSavingsPlanOffering) SetPlanDescription(v string) *ParentSavingsPlanOffering
SetPlanDescription sets the PlanDescription field's value.
func (s *ParentSavingsPlanOffering) SetPlanType(v string) *ParentSavingsPlanOffering
SetPlanType sets the PlanType field's value.
func (s ParentSavingsPlanOffering) 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"` // contains filtered or unexported fields }
The specified resource was not found.
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 ReturnSavingsPlanInput struct { // A unique, case-sensitive identifier that you provide to ensure the idempotency // of the request. ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"` // 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 (s ReturnSavingsPlanInput) 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 *ReturnSavingsPlanInput) SetClientToken(v string) *ReturnSavingsPlanInput
SetClientToken sets the ClientToken field's value.
func (s *ReturnSavingsPlanInput) SetSavingsPlanId(v string) *ReturnSavingsPlanInput
SetSavingsPlanId sets the SavingsPlanId field's value.
func (s ReturnSavingsPlanInput) 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 *ReturnSavingsPlanInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ReturnSavingsPlanOutput struct { // The ID of the Savings Plan. SavingsPlanId *string `locationName:"savingsPlanId" type:"string"` // contains filtered or unexported fields }
func (s ReturnSavingsPlanOutput) 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 *ReturnSavingsPlanOutput) SetSavingsPlanId(v string) *ReturnSavingsPlanOutput
SetSavingsPlanId sets the SavingsPlanId field's value.
func (s ReturnSavingsPlanOutput) 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 SavingsPlan struct { // The hourly commitment amount in the specified currency. Commitment *string `locationName:"commitment" type:"string"` // The currency. Currency *string `locationName:"currency" type:"string" enum:"CurrencyCode"` // 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 *string `locationName:"paymentOption" type:"string" enum:"SavingsPlanPaymentOption"` // The product types. ProductTypes []*string `locationName:"productTypes" type:"list" enum:"SavingsPlanProductType"` // The recurring payment amount. RecurringPaymentAmount *string `locationName:"recurringPaymentAmount" type:"string"` // The Amazon Web Services Region. Region *string `locationName:"region" type:"string"` // The time until when a return for the Savings Plan can be requested. If the // Savings Plan is not returnable, the field reflects the Savings Plan start // time. ReturnableUntil *string `locationName:"returnableUntil" 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 *string `locationName:"savingsPlanType" type:"string" enum:"SavingsPlanType"` // The start time. Start *string `locationName:"start" type:"string"` // The current state. State *string `locationName:"state" type:"string" enum:"SavingsPlanState"` // 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 (s SavingsPlan) 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 *SavingsPlan) SetCommitment(v string) *SavingsPlan
SetCommitment sets the Commitment field's value.
func (s *SavingsPlan) SetCurrency(v string) *SavingsPlan
SetCurrency sets the Currency field's value.
func (s *SavingsPlan) SetDescription(v string) *SavingsPlan
SetDescription sets the Description field's value.
func (s *SavingsPlan) SetEc2InstanceFamily(v string) *SavingsPlan
SetEc2InstanceFamily sets the Ec2InstanceFamily field's value.
func (s *SavingsPlan) SetEnd(v string) *SavingsPlan
SetEnd sets the End field's value.
func (s *SavingsPlan) SetOfferingId(v string) *SavingsPlan
SetOfferingId sets the OfferingId field's value.
func (s *SavingsPlan) SetPaymentOption(v string) *SavingsPlan
SetPaymentOption sets the PaymentOption field's value.
func (s *SavingsPlan) SetProductTypes(v []*string) *SavingsPlan
SetProductTypes sets the ProductTypes field's value.
func (s *SavingsPlan) SetRecurringPaymentAmount(v string) *SavingsPlan
SetRecurringPaymentAmount sets the RecurringPaymentAmount field's value.
func (s *SavingsPlan) SetRegion(v string) *SavingsPlan
SetRegion sets the Region field's value.
func (s *SavingsPlan) SetReturnableUntil(v string) *SavingsPlan
SetReturnableUntil sets the ReturnableUntil field's value.
func (s *SavingsPlan) SetSavingsPlanArn(v string) *SavingsPlan
SetSavingsPlanArn sets the SavingsPlanArn field's value.
func (s *SavingsPlan) SetSavingsPlanId(v string) *SavingsPlan
SetSavingsPlanId sets the SavingsPlanId field's value.
func (s *SavingsPlan) SetSavingsPlanType(v string) *SavingsPlan
SetSavingsPlanType sets the SavingsPlanType field's value.
func (s *SavingsPlan) SetStart(v string) *SavingsPlan
SetStart sets the Start field's value.
func (s *SavingsPlan) SetState(v string) *SavingsPlan
SetState sets the State field's value.
func (s *SavingsPlan) SetTags(v map[string]*string) *SavingsPlan
SetTags sets the Tags field's value.
func (s *SavingsPlan) SetTermDurationInSeconds(v int64) *SavingsPlan
SetTermDurationInSeconds sets the TermDurationInSeconds field's value.
func (s *SavingsPlan) SetUpfrontPaymentAmount(v string) *SavingsPlan
SetUpfrontPaymentAmount sets the UpfrontPaymentAmount field's value.
func (s SavingsPlan) 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 SavingsPlanFilter struct { // The filter name. Name *string `locationName:"name" type:"string" enum:"SavingsPlansFilterName"` // The filter value. Values []*string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a Savings Plan filter.
func (s SavingsPlanFilter) 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 *SavingsPlanFilter) SetName(v string) *SavingsPlanFilter
SetName sets the Name field's value.
func (s *SavingsPlanFilter) SetValues(v []*string) *SavingsPlanFilter
SetValues sets the Values field's value.
func (s SavingsPlanFilter) 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 SavingsPlanOffering struct { // The currency. Currency *string `locationName:"currency" type:"string" enum:"CurrencyCode"` // 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 Amazon Web Services operation for the line item in the billing // report. Operation *string `locationName:"operation" type:"string"` // The payment option. PaymentOption *string `locationName:"paymentOption" type:"string" enum:"SavingsPlanPaymentOption"` // The plan type. PlanType *string `locationName:"planType" type:"string" enum:"SavingsPlanType"` // The product type. ProductTypes []*string `locationName:"productTypes" type:"list" enum:"SavingsPlanProductType"` // 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 (s SavingsPlanOffering) 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 *SavingsPlanOffering) SetCurrency(v string) *SavingsPlanOffering
SetCurrency sets the Currency field's value.
func (s *SavingsPlanOffering) SetDescription(v string) *SavingsPlanOffering
SetDescription sets the Description field's value.
func (s *SavingsPlanOffering) SetDurationSeconds(v int64) *SavingsPlanOffering
SetDurationSeconds sets the DurationSeconds field's value.
func (s *SavingsPlanOffering) SetOfferingId(v string) *SavingsPlanOffering
SetOfferingId sets the OfferingId field's value.
func (s *SavingsPlanOffering) SetOperation(v string) *SavingsPlanOffering
SetOperation sets the Operation field's value.
func (s *SavingsPlanOffering) SetPaymentOption(v string) *SavingsPlanOffering
SetPaymentOption sets the PaymentOption field's value.
func (s *SavingsPlanOffering) SetPlanType(v string) *SavingsPlanOffering
SetPlanType sets the PlanType field's value.
func (s *SavingsPlanOffering) SetProductTypes(v []*string) *SavingsPlanOffering
SetProductTypes sets the ProductTypes field's value.
func (s *SavingsPlanOffering) SetProperties(v []*SavingsPlanOfferingProperty) *SavingsPlanOffering
SetProperties sets the Properties field's value.
func (s *SavingsPlanOffering) SetServiceCode(v string) *SavingsPlanOffering
SetServiceCode sets the ServiceCode field's value.
func (s *SavingsPlanOffering) SetUsageType(v string) *SavingsPlanOffering
SetUsageType sets the UsageType field's value.
func (s SavingsPlanOffering) 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 SavingsPlanOfferingFilterElement struct { // The filter name. Name *string `locationName:"name" type:"string" enum:"SavingsPlanOfferingFilterAttribute"` // The filter values. Values []*string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a Savings Plan offering filter.
func (s SavingsPlanOfferingFilterElement) 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 *SavingsPlanOfferingFilterElement) SetName(v string) *SavingsPlanOfferingFilterElement
SetName sets the Name field's value.
func (s *SavingsPlanOfferingFilterElement) SetValues(v []*string) *SavingsPlanOfferingFilterElement
SetValues sets the Values field's value.
func (s SavingsPlanOfferingFilterElement) 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 SavingsPlanOfferingProperty struct { // The property name. Name *string `locationName:"name" type:"string" enum:"SavingsPlanOfferingPropertyKey"` // The property value. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a Savings Plan offering property.
func (s SavingsPlanOfferingProperty) 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 *SavingsPlanOfferingProperty) SetName(v string) *SavingsPlanOfferingProperty
SetName sets the Name field's value.
func (s *SavingsPlanOfferingProperty) SetValue(v string) *SavingsPlanOfferingProperty
SetValue sets the Value field's value.
func (s SavingsPlanOfferingProperty) 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 SavingsPlanOfferingRate struct { // The specific Amazon Web Services operation for the line item in the billing // report. Operation *string `locationName:"operation" type:"string"` // The product type. ProductType *string `locationName:"productType" type:"string" enum:"SavingsPlanProductType"` // 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 *string `locationName:"serviceCode" type:"string" enum:"SavingsPlanRateServiceCode"` // The unit. Unit *string `locationName:"unit" type:"string" enum:"SavingsPlanRateUnit"` // 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 (s SavingsPlanOfferingRate) 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 *SavingsPlanOfferingRate) SetOperation(v string) *SavingsPlanOfferingRate
SetOperation sets the Operation field's value.
func (s *SavingsPlanOfferingRate) SetProductType(v string) *SavingsPlanOfferingRate
SetProductType sets the ProductType field's value.
func (s *SavingsPlanOfferingRate) SetProperties(v []*SavingsPlanOfferingRateProperty) *SavingsPlanOfferingRate
SetProperties sets the Properties field's value.
func (s *SavingsPlanOfferingRate) SetRate(v string) *SavingsPlanOfferingRate
SetRate sets the Rate field's value.
func (s *SavingsPlanOfferingRate) SetSavingsPlanOffering(v *ParentSavingsPlanOffering) *SavingsPlanOfferingRate
SetSavingsPlanOffering sets the SavingsPlanOffering field's value.
func (s *SavingsPlanOfferingRate) SetServiceCode(v string) *SavingsPlanOfferingRate
SetServiceCode sets the ServiceCode field's value.
func (s *SavingsPlanOfferingRate) SetUnit(v string) *SavingsPlanOfferingRate
SetUnit sets the Unit field's value.
func (s *SavingsPlanOfferingRate) SetUsageType(v string) *SavingsPlanOfferingRate
SetUsageType sets the UsageType field's value.
func (s SavingsPlanOfferingRate) 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 SavingsPlanOfferingRateFilterElement struct { // The filter name. Name *string `locationName:"name" type:"string" enum:"SavingsPlanRateFilterAttribute"` // The filter values. Values []*string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a Savings Plan offering rate filter.
func (s SavingsPlanOfferingRateFilterElement) 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 *SavingsPlanOfferingRateFilterElement) SetName(v string) *SavingsPlanOfferingRateFilterElement
SetName sets the Name field's value.
func (s *SavingsPlanOfferingRateFilterElement) SetValues(v []*string) *SavingsPlanOfferingRateFilterElement
SetValues sets the Values field's value.
func (s SavingsPlanOfferingRateFilterElement) 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 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 Savings Plan offering rate property.
func (s SavingsPlanOfferingRateProperty) 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 *SavingsPlanOfferingRateProperty) SetName(v string) *SavingsPlanOfferingRateProperty
SetName sets the Name field's value.
func (s *SavingsPlanOfferingRateProperty) SetValue(v string) *SavingsPlanOfferingRateProperty
SetValue sets the Value field's value.
func (s SavingsPlanOfferingRateProperty) 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 SavingsPlanRate struct { // The currency. Currency *string `locationName:"currency" type:"string" enum:"CurrencyCode"` // The specific Amazon Web Services operation for the line item in the billing // report. Operation *string `locationName:"operation" type:"string"` // The product type. ProductType *string `locationName:"productType" type:"string" enum:"SavingsPlanProductType"` // The properties. Properties []*SavingsPlanRateProperty `locationName:"properties" type:"list"` // The rate. Rate *string `locationName:"rate" type:"string"` // The service. ServiceCode *string `locationName:"serviceCode" type:"string" enum:"SavingsPlanRateServiceCode"` // The unit. Unit *string `locationName:"unit" type:"string" enum:"SavingsPlanRateUnit"` // 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 (s SavingsPlanRate) 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 *SavingsPlanRate) SetCurrency(v string) *SavingsPlanRate
SetCurrency sets the Currency field's value.
func (s *SavingsPlanRate) SetOperation(v string) *SavingsPlanRate
SetOperation sets the Operation field's value.
func (s *SavingsPlanRate) SetProductType(v string) *SavingsPlanRate
SetProductType sets the ProductType field's value.
func (s *SavingsPlanRate) SetProperties(v []*SavingsPlanRateProperty) *SavingsPlanRate
SetProperties sets the Properties field's value.
func (s *SavingsPlanRate) SetRate(v string) *SavingsPlanRate
SetRate sets the Rate field's value.
func (s *SavingsPlanRate) SetServiceCode(v string) *SavingsPlanRate
SetServiceCode sets the ServiceCode field's value.
func (s *SavingsPlanRate) SetUnit(v string) *SavingsPlanRate
SetUnit sets the Unit field's value.
func (s *SavingsPlanRate) SetUsageType(v string) *SavingsPlanRate
SetUsageType sets the UsageType field's value.
func (s SavingsPlanRate) 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 SavingsPlanRateFilter struct { // The filter name. Name *string `locationName:"name" type:"string" enum:"SavingsPlanRateFilterName"` // The filter values. Values []*string `locationName:"values" type:"list"` // contains filtered or unexported fields }
Information about a Savings Plan rate filter.
func (s SavingsPlanRateFilter) 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 *SavingsPlanRateFilter) SetName(v string) *SavingsPlanRateFilter
SetName sets the Name field's value.
func (s *SavingsPlanRateFilter) SetValues(v []*string) *SavingsPlanRateFilter
SetValues sets the Values field's value.
func (s SavingsPlanRateFilter) 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 SavingsPlanRateProperty struct { // The property name. Name *string `locationName:"name" type:"string" enum:"SavingsPlanRatePropertyKey"` // The property value. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a Savings Plan rate property.
func (s SavingsPlanRateProperty) 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 *SavingsPlanRateProperty) SetName(v string) *SavingsPlanRateProperty
SetName sets the Name field's value.
func (s *SavingsPlanRateProperty) SetValue(v string) *SavingsPlanRateProperty
SetValue sets the Value field's value.
func (s SavingsPlanRateProperty) 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 SavingsPlans struct { *client.Client }
SavingsPlans provides the API operation methods for making requests to AWS Savings Plans. See this package's package overview docs for details on the service.
SavingsPlans 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) *SavingsPlans
New creates a new instance of the SavingsPlans 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 SavingsPlans client from just a session. svc := savingsplans.New(mySession) // Create a SavingsPlans client with additional configuration svc := savingsplans.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (c *SavingsPlans) CreateSavingsPlan(input *CreateSavingsPlanInput) (*CreateSavingsPlanOutput, error)
CreateSavingsPlan API operation for AWS Savings Plans.
Creates a Savings Plan.
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 AWS Savings Plans's API operation CreateSavingsPlan for usage and error information.
Returned Error Types:
ResourceNotFoundException The specified resource was not found.
ValidationException One of the input parameters is not valid.
InternalServerException An unexpected error occurred.
ServiceQuotaExceededException A service quota has been exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/CreateSavingsPlan
func (c *SavingsPlans) CreateSavingsPlanRequest(input *CreateSavingsPlanInput) (req *request.Request, output *CreateSavingsPlanOutput)
CreateSavingsPlanRequest generates a "aws/request.Request" representing the client's request for the CreateSavingsPlan 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 CreateSavingsPlan for more information on using the CreateSavingsPlan 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 CreateSavingsPlanRequest method. req, resp := client.CreateSavingsPlanRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/CreateSavingsPlan
func (c *SavingsPlans) CreateSavingsPlanWithContext(ctx aws.Context, input *CreateSavingsPlanInput, opts ...request.Option) (*CreateSavingsPlanOutput, error)
CreateSavingsPlanWithContext is the same as CreateSavingsPlan with the addition of the ability to pass a context and additional request options.
See CreateSavingsPlan 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 *SavingsPlans) DeleteQueuedSavingsPlan(input *DeleteQueuedSavingsPlanInput) (*DeleteQueuedSavingsPlanOutput, error)
DeleteQueuedSavingsPlan API operation for AWS Savings Plans.
Deletes the queued purchase for the specified Savings Plan.
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 AWS Savings Plans's API operation DeleteQueuedSavingsPlan for usage and error information.
Returned Error Types:
ValidationException One of the input parameters is not valid.
ResourceNotFoundException The specified resource was not found.
InternalServerException An unexpected error occurred.
ServiceQuotaExceededException A service quota has been exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DeleteQueuedSavingsPlan
func (c *SavingsPlans) DeleteQueuedSavingsPlanRequest(input *DeleteQueuedSavingsPlanInput) (req *request.Request, output *DeleteQueuedSavingsPlanOutput)
DeleteQueuedSavingsPlanRequest generates a "aws/request.Request" representing the client's request for the DeleteQueuedSavingsPlan 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 DeleteQueuedSavingsPlan for more information on using the DeleteQueuedSavingsPlan 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 DeleteQueuedSavingsPlanRequest method. req, resp := client.DeleteQueuedSavingsPlanRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DeleteQueuedSavingsPlan
func (c *SavingsPlans) DeleteQueuedSavingsPlanWithContext(ctx aws.Context, input *DeleteQueuedSavingsPlanInput, opts ...request.Option) (*DeleteQueuedSavingsPlanOutput, error)
DeleteQueuedSavingsPlanWithContext is the same as DeleteQueuedSavingsPlan with the addition of the ability to pass a context and additional request options.
See DeleteQueuedSavingsPlan 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 *SavingsPlans) DescribeSavingsPlanRates(input *DescribeSavingsPlanRatesInput) (*DescribeSavingsPlanRatesOutput, error)
DescribeSavingsPlanRates API operation for AWS Savings Plans.
Describes the rates for the specified Savings Plan.
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 AWS Savings Plans's API operation DescribeSavingsPlanRates for usage and error information.
Returned Error Types:
ResourceNotFoundException The specified resource was not found.
ValidationException One of the input parameters is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlanRates
func (c *SavingsPlans) DescribeSavingsPlanRatesRequest(input *DescribeSavingsPlanRatesInput) (req *request.Request, output *DescribeSavingsPlanRatesOutput)
DescribeSavingsPlanRatesRequest generates a "aws/request.Request" representing the client's request for the DescribeSavingsPlanRates 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 DescribeSavingsPlanRates for more information on using the DescribeSavingsPlanRates 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 DescribeSavingsPlanRatesRequest method. req, resp := client.DescribeSavingsPlanRatesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlanRates
func (c *SavingsPlans) DescribeSavingsPlanRatesWithContext(ctx aws.Context, input *DescribeSavingsPlanRatesInput, opts ...request.Option) (*DescribeSavingsPlanRatesOutput, error)
DescribeSavingsPlanRatesWithContext is the same as DescribeSavingsPlanRates with the addition of the ability to pass a context and additional request options.
See DescribeSavingsPlanRates 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 *SavingsPlans) DescribeSavingsPlans(input *DescribeSavingsPlansInput) (*DescribeSavingsPlansOutput, error)
DescribeSavingsPlans API operation for AWS Savings Plans.
Describes the specified Savings Plans.
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 AWS Savings Plans's API operation DescribeSavingsPlans for usage and error information.
Returned Error Types:
InternalServerException An unexpected error occurred.
ValidationException One of the input parameters is not valid.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlans
func (c *SavingsPlans) DescribeSavingsPlansOfferingRates(input *DescribeSavingsPlansOfferingRatesInput) (*DescribeSavingsPlansOfferingRatesOutput, error)
DescribeSavingsPlansOfferingRates API operation for AWS Savings Plans.
Describes the offering rates for the specified Savings Plans.
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 AWS Savings Plans's API operation DescribeSavingsPlansOfferingRates for usage and error information.
Returned Error Types:
ValidationException One of the input parameters is not valid.
InternalServerException An unexpected error occurred.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates
func (c *SavingsPlans) DescribeSavingsPlansOfferingRatesRequest(input *DescribeSavingsPlansOfferingRatesInput) (req *request.Request, output *DescribeSavingsPlansOfferingRatesOutput)
DescribeSavingsPlansOfferingRatesRequest generates a "aws/request.Request" representing the client's request for the DescribeSavingsPlansOfferingRates 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 DescribeSavingsPlansOfferingRates for more information on using the DescribeSavingsPlansOfferingRates 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 DescribeSavingsPlansOfferingRatesRequest method. req, resp := client.DescribeSavingsPlansOfferingRatesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates
func (c *SavingsPlans) DescribeSavingsPlansOfferingRatesWithContext(ctx aws.Context, input *DescribeSavingsPlansOfferingRatesInput, opts ...request.Option) (*DescribeSavingsPlansOfferingRatesOutput, error)
DescribeSavingsPlansOfferingRatesWithContext is the same as DescribeSavingsPlansOfferingRates with the addition of the ability to pass a context and additional request options.
See DescribeSavingsPlansOfferingRates 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 *SavingsPlans) DescribeSavingsPlansOfferings(input *DescribeSavingsPlansOfferingsInput) (*DescribeSavingsPlansOfferingsOutput, error)
DescribeSavingsPlansOfferings API operation for AWS Savings Plans.
Describes the offerings for the specified Savings Plans.
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 AWS Savings Plans's API operation DescribeSavingsPlansOfferings for usage and error information.
Returned Error Types:
ValidationException One of the input parameters is not valid.
InternalServerException An unexpected error occurred.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferings
func (c *SavingsPlans) DescribeSavingsPlansOfferingsRequest(input *DescribeSavingsPlansOfferingsInput) (req *request.Request, output *DescribeSavingsPlansOfferingsOutput)
DescribeSavingsPlansOfferingsRequest generates a "aws/request.Request" representing the client's request for the DescribeSavingsPlansOfferings 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 DescribeSavingsPlansOfferings for more information on using the DescribeSavingsPlansOfferings 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 DescribeSavingsPlansOfferingsRequest method. req, resp := client.DescribeSavingsPlansOfferingsRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferings
func (c *SavingsPlans) DescribeSavingsPlansOfferingsWithContext(ctx aws.Context, input *DescribeSavingsPlansOfferingsInput, opts ...request.Option) (*DescribeSavingsPlansOfferingsOutput, error)
DescribeSavingsPlansOfferingsWithContext is the same as DescribeSavingsPlansOfferings with the addition of the ability to pass a context and additional request options.
See DescribeSavingsPlansOfferings 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 *SavingsPlans) DescribeSavingsPlansRequest(input *DescribeSavingsPlansInput) (req *request.Request, output *DescribeSavingsPlansOutput)
DescribeSavingsPlansRequest generates a "aws/request.Request" representing the client's request for the DescribeSavingsPlans 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 DescribeSavingsPlans for more information on using the DescribeSavingsPlans 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 DescribeSavingsPlansRequest method. req, resp := client.DescribeSavingsPlansRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlans
func (c *SavingsPlans) DescribeSavingsPlansWithContext(ctx aws.Context, input *DescribeSavingsPlansInput, opts ...request.Option) (*DescribeSavingsPlansOutput, error)
DescribeSavingsPlansWithContext is the same as DescribeSavingsPlans with the addition of the ability to pass a context and additional request options.
See DescribeSavingsPlans 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 *SavingsPlans) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
ListTagsForResource API operation for AWS Savings Plans.
Lists the tags for the specified resource.
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 AWS Savings Plans's API operation ListTagsForResource for usage and error information.
Returned Error Types:
ResourceNotFoundException The specified resource was not found.
ValidationException One of the input parameters is not valid.
InternalServerException An unexpected error occurred.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ListTagsForResource
func (c *SavingsPlans) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)
ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource 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 ListTagsForResource for more information on using the ListTagsForResource 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 ListTagsForResourceRequest method. req, resp := client.ListTagsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ListTagsForResource
func (c *SavingsPlans) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)
ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.
See ListTagsForResource 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 *SavingsPlans) ReturnSavingsPlan(input *ReturnSavingsPlanInput) (*ReturnSavingsPlanOutput, error)
ReturnSavingsPlan API operation for AWS Savings Plans.
Returns the specified Savings Plan.
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 AWS Savings Plans's API operation ReturnSavingsPlan for usage and error information.
Returned Error Types:
ValidationException One of the input parameters is not valid.
ResourceNotFoundException The specified resource was not found.
InternalServerException An unexpected error occurred.
ServiceQuotaExceededException A service quota has been exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ReturnSavingsPlan
func (c *SavingsPlans) ReturnSavingsPlanRequest(input *ReturnSavingsPlanInput) (req *request.Request, output *ReturnSavingsPlanOutput)
ReturnSavingsPlanRequest generates a "aws/request.Request" representing the client's request for the ReturnSavingsPlan 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 ReturnSavingsPlan for more information on using the ReturnSavingsPlan 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 ReturnSavingsPlanRequest method. req, resp := client.ReturnSavingsPlanRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ReturnSavingsPlan
func (c *SavingsPlans) ReturnSavingsPlanWithContext(ctx aws.Context, input *ReturnSavingsPlanInput, opts ...request.Option) (*ReturnSavingsPlanOutput, error)
ReturnSavingsPlanWithContext is the same as ReturnSavingsPlan with the addition of the ability to pass a context and additional request options.
See ReturnSavingsPlan 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 *SavingsPlans) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
TagResource API operation for AWS Savings Plans.
Adds the specified tags to the specified resource.
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 AWS Savings Plans's API operation TagResource for usage and error information.
Returned Error Types:
ResourceNotFoundException The specified resource was not found.
ServiceQuotaExceededException A service quota has been exceeded.
ValidationException One of the input parameters is not valid.
InternalServerException An unexpected error occurred.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/TagResource
func (c *SavingsPlans) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource 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 TagResource for more information on using the TagResource 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 TagResourceRequest method. req, resp := client.TagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/TagResource
func (c *SavingsPlans) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.
See TagResource 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 *SavingsPlans) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
UntagResource API operation for AWS Savings Plans.
Removes the specified tags from the specified resource.
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 AWS Savings Plans's API operation UntagResource for usage and error information.
Returned Error Types:
ResourceNotFoundException The specified resource was not found.
ValidationException One of the input parameters is not valid.
InternalServerException An unexpected error occurred.
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/UntagResource
func (c *SavingsPlans) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource 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 UntagResource for more information on using the UntagResource 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 UntagResourceRequest method. req, resp := client.UntagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/UntagResource
func (c *SavingsPlans) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.
See UntagResource 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 ServiceQuotaExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
A service quota has been exceeded.
func (s *ServiceQuotaExceededException) Code() string
Code returns the exception type name.
func (s *ServiceQuotaExceededException) Error() string
func (s ServiceQuotaExceededException) 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 *ServiceQuotaExceededException) Message() string
Message returns the exception's message.
func (s *ServiceQuotaExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ServiceQuotaExceededException) 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 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 (s TagResourceInput) 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 *TagResourceInput) SetResourceArn(v string) *TagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput
SetTags sets the Tags field's value.
func (s TagResourceInput) 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 *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (s TagResourceOutput) 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 TagResourceOutput) 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 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 (s UntagResourceInput) 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 *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput
SetTagKeys sets the TagKeys field's value.
func (s UntagResourceInput) 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 *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (s UntagResourceOutput) 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 UntagResourceOutput) 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:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
One of the input parameters is not valid.
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".