savingsplans

package
v0.0.0-...-2e770b4 Latest Latest
Warning

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

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

Documentation

Overview

Package savingsplans provides the client and types for making API requests to AWS Savings Plans.

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 contact AWS Savings Plans 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 AWS Savings Plans client SavingsPlans for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/savingsplans/#New

Index

Constants

View Source
const (
	// CurrencyCodeCny is a CurrencyCode enum value
	CurrencyCodeCny = "CNY"

	// CurrencyCodeUsd is a CurrencyCode enum value
	CurrencyCodeUsd = "USD"
)
View Source
const (
	// SavingsPlanOfferingFilterAttributeRegion is a SavingsPlanOfferingFilterAttribute enum value
	SavingsPlanOfferingFilterAttributeRegion = "region"

	// SavingsPlanOfferingFilterAttributeInstanceFamily is a SavingsPlanOfferingFilterAttribute enum value
	SavingsPlanOfferingFilterAttributeInstanceFamily = "instanceFamily"
)
View Source
const (
	// SavingsPlanOfferingPropertyKeyRegion is a SavingsPlanOfferingPropertyKey enum value
	SavingsPlanOfferingPropertyKeyRegion = "region"

	// SavingsPlanOfferingPropertyKeyInstanceFamily is a SavingsPlanOfferingPropertyKey enum value
	SavingsPlanOfferingPropertyKeyInstanceFamily = "instanceFamily"
)
View Source
const (
	// SavingsPlanPaymentOptionAllUpfront is a SavingsPlanPaymentOption enum value
	SavingsPlanPaymentOptionAllUpfront = "All Upfront"

	// SavingsPlanPaymentOptionPartialUpfront is a SavingsPlanPaymentOption enum value
	SavingsPlanPaymentOptionPartialUpfront = "Partial Upfront"

	// SavingsPlanPaymentOptionNoUpfront is a SavingsPlanPaymentOption enum value
	SavingsPlanPaymentOptionNoUpfront = "No Upfront"
)
View Source
const (
	// SavingsPlanProductTypeEc2 is a SavingsPlanProductType enum value
	SavingsPlanProductTypeEc2 = "EC2"

	// SavingsPlanProductTypeFargate is a SavingsPlanProductType enum value
	SavingsPlanProductTypeFargate = "Fargate"

	// SavingsPlanProductTypeLambda is a SavingsPlanProductType enum value
	SavingsPlanProductTypeLambda = "Lambda"

	// SavingsPlanProductTypeSageMaker is a SavingsPlanProductType enum value
	SavingsPlanProductTypeSageMaker = "SageMaker"
)
View Source
const (
	// SavingsPlanRateFilterAttributeRegion is a SavingsPlanRateFilterAttribute enum value
	SavingsPlanRateFilterAttributeRegion = "region"

	// SavingsPlanRateFilterAttributeInstanceFamily is a SavingsPlanRateFilterAttribute enum value
	SavingsPlanRateFilterAttributeInstanceFamily = "instanceFamily"

	// SavingsPlanRateFilterAttributeInstanceType is a SavingsPlanRateFilterAttribute enum value
	SavingsPlanRateFilterAttributeInstanceType = "instanceType"

	// SavingsPlanRateFilterAttributeProductDescription is a SavingsPlanRateFilterAttribute enum value
	SavingsPlanRateFilterAttributeProductDescription = "productDescription"

	// SavingsPlanRateFilterAttributeTenancy is a SavingsPlanRateFilterAttribute enum value
	SavingsPlanRateFilterAttributeTenancy = "tenancy"

	// SavingsPlanRateFilterAttributeProductId is a SavingsPlanRateFilterAttribute enum value
	SavingsPlanRateFilterAttributeProductId = "productId"
)
View Source
const (
	// SavingsPlanRateFilterNameRegion is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameRegion = "region"

	// SavingsPlanRateFilterNameInstanceType is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameInstanceType = "instanceType"

	// SavingsPlanRateFilterNameProductDescription is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameProductDescription = "productDescription"

	// SavingsPlanRateFilterNameTenancy is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameTenancy = "tenancy"

	// SavingsPlanRateFilterNameProductType is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameProductType = "productType"

	// SavingsPlanRateFilterNameServiceCode is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameServiceCode = "serviceCode"

	// SavingsPlanRateFilterNameUsageType is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameUsageType = "usageType"

	// SavingsPlanRateFilterNameOperation is a SavingsPlanRateFilterName enum value
	SavingsPlanRateFilterNameOperation = "operation"
)
View Source
const (
	// SavingsPlanRatePropertyKeyRegion is a SavingsPlanRatePropertyKey enum value
	SavingsPlanRatePropertyKeyRegion = "region"

	// SavingsPlanRatePropertyKeyInstanceType is a SavingsPlanRatePropertyKey enum value
	SavingsPlanRatePropertyKeyInstanceType = "instanceType"

	// SavingsPlanRatePropertyKeyInstanceFamily is a SavingsPlanRatePropertyKey enum value
	SavingsPlanRatePropertyKeyInstanceFamily = "instanceFamily"

	// SavingsPlanRatePropertyKeyProductDescription is a SavingsPlanRatePropertyKey enum value
	SavingsPlanRatePropertyKeyProductDescription = "productDescription"

	// SavingsPlanRatePropertyKeyTenancy is a SavingsPlanRatePropertyKey enum value
	SavingsPlanRatePropertyKeyTenancy = "tenancy"
)
View Source
const (
	// SavingsPlanRateServiceCodeAmazonEc2 is a SavingsPlanRateServiceCode enum value
	SavingsPlanRateServiceCodeAmazonEc2 = "AmazonEC2"

	// SavingsPlanRateServiceCodeAmazonEcs is a SavingsPlanRateServiceCode enum value
	SavingsPlanRateServiceCodeAmazonEcs = "AmazonECS"

	// SavingsPlanRateServiceCodeAmazonEks is a SavingsPlanRateServiceCode enum value
	SavingsPlanRateServiceCodeAmazonEks = "AmazonEKS"

	// SavingsPlanRateServiceCodeAwslambda is a SavingsPlanRateServiceCode enum value
	SavingsPlanRateServiceCodeAwslambda = "AWSLambda"

	// SavingsPlanRateServiceCodeAmazonSageMaker is a SavingsPlanRateServiceCode enum value
	SavingsPlanRateServiceCodeAmazonSageMaker = "AmazonSageMaker"
)
View Source
const (
	// SavingsPlanRateUnitHrs is a SavingsPlanRateUnit enum value
	SavingsPlanRateUnitHrs = "Hrs"

	// SavingsPlanRateUnitLambdaGbSecond is a SavingsPlanRateUnit enum value
	SavingsPlanRateUnitLambdaGbSecond = "Lambda-GB-Second"

	// SavingsPlanRateUnitRequest is a SavingsPlanRateUnit enum value
	SavingsPlanRateUnitRequest = "Request"
)
View Source
const (
	// SavingsPlanStatePaymentPending is a SavingsPlanState enum value
	SavingsPlanStatePaymentPending = "payment-pending"

	// SavingsPlanStatePaymentFailed is a SavingsPlanState enum value
	SavingsPlanStatePaymentFailed = "payment-failed"

	// SavingsPlanStateActive is a SavingsPlanState enum value
	SavingsPlanStateActive = "active"

	// SavingsPlanStateRetired is a SavingsPlanState enum value
	SavingsPlanStateRetired = "retired"

	// SavingsPlanStateQueued is a SavingsPlanState enum value
	SavingsPlanStateQueued = "queued"

	// SavingsPlanStateQueuedDeleted is a SavingsPlanState enum value
	SavingsPlanStateQueuedDeleted = "queued-deleted"
)
View Source
const (
	// SavingsPlanTypeCompute is a SavingsPlanType enum value
	SavingsPlanTypeCompute = "Compute"

	// SavingsPlanTypeEc2instance is a SavingsPlanType enum value
	SavingsPlanTypeEc2instance = "EC2Instance"

	// SavingsPlanTypeSageMaker is a SavingsPlanType enum value
	SavingsPlanTypeSageMaker = "SageMaker"
)
View Source
const (
	// SavingsPlansFilterNameRegion is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameRegion = "region"

	// SavingsPlansFilterNameEc2InstanceFamily is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameEc2InstanceFamily = "ec2-instance-family"

	// SavingsPlansFilterNameCommitment is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameCommitment = "commitment"

	// SavingsPlansFilterNameUpfront is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameUpfront = "upfront"

	// SavingsPlansFilterNameTerm is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameTerm = "term"

	// SavingsPlansFilterNameSavingsPlanType is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameSavingsPlanType = "savings-plan-type"

	// SavingsPlansFilterNamePaymentOption is a SavingsPlansFilterName enum value
	SavingsPlansFilterNamePaymentOption = "payment-option"

	// SavingsPlansFilterNameStart is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameStart = "start"

	// SavingsPlansFilterNameEnd is a SavingsPlansFilterName enum value
	SavingsPlansFilterNameEnd = "end"
)
View Source
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"
)
View Source
const (
	ServiceName = "savingsplans" // Name of service.
	EndpointsID = ServiceName    // ID to lookup a service endpoint with.
	ServiceID   = "savingsplans" // ServiceID is a unique identifier of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

func CurrencyCode_Values

func CurrencyCode_Values() []string

CurrencyCode_Values returns all elements of the CurrencyCode enum

func SavingsPlanOfferingFilterAttribute_Values

func SavingsPlanOfferingFilterAttribute_Values() []string

SavingsPlanOfferingFilterAttribute_Values returns all elements of the SavingsPlanOfferingFilterAttribute enum

func SavingsPlanOfferingPropertyKey_Values

func SavingsPlanOfferingPropertyKey_Values() []string

SavingsPlanOfferingPropertyKey_Values returns all elements of the SavingsPlanOfferingPropertyKey enum

func SavingsPlanPaymentOption_Values

func SavingsPlanPaymentOption_Values() []string

SavingsPlanPaymentOption_Values returns all elements of the SavingsPlanPaymentOption enum

func SavingsPlanProductType_Values

func SavingsPlanProductType_Values() []string

SavingsPlanProductType_Values returns all elements of the SavingsPlanProductType enum

func SavingsPlanRateFilterAttribute_Values

func SavingsPlanRateFilterAttribute_Values() []string

SavingsPlanRateFilterAttribute_Values returns all elements of the SavingsPlanRateFilterAttribute enum

func SavingsPlanRateFilterName_Values

func SavingsPlanRateFilterName_Values() []string

SavingsPlanRateFilterName_Values returns all elements of the SavingsPlanRateFilterName enum

func SavingsPlanRatePropertyKey_Values

func SavingsPlanRatePropertyKey_Values() []string

SavingsPlanRatePropertyKey_Values returns all elements of the SavingsPlanRatePropertyKey enum

func SavingsPlanRateServiceCode_Values

func SavingsPlanRateServiceCode_Values() []string

SavingsPlanRateServiceCode_Values returns all elements of the SavingsPlanRateServiceCode enum

func SavingsPlanRateUnit_Values

func SavingsPlanRateUnit_Values() []string

SavingsPlanRateUnit_Values returns all elements of the SavingsPlanRateUnit enum

func SavingsPlanState_Values

func SavingsPlanState_Values() []string

SavingsPlanState_Values returns all elements of the SavingsPlanState enum

func SavingsPlanType_Values

func SavingsPlanType_Values() []string

SavingsPlanType_Values returns all elements of the SavingsPlanType enum

func SavingsPlansFilterName_Values

func SavingsPlansFilterName_Values() []string

SavingsPlansFilterName_Values returns all elements of the SavingsPlansFilterName enum

Types

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 five digits after the decimal point.
	//
	// Commitment is a required field
	Commitment *string `locationName:"commitment" type:"string" required:"true"`

	// The time at which to purchase 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 supported only
	// if the payment option is Partial Upfront.
	UpfrontPaymentAmount *string `locationName:"upfrontPaymentAmount" type:"string"`
	// contains filtered or unexported fields
}

func (CreateSavingsPlanInput) GoString

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 (*CreateSavingsPlanInput) SetClientToken

SetClientToken sets the ClientToken field's value.

func (*CreateSavingsPlanInput) SetCommitment

SetCommitment sets the Commitment field's value.

func (*CreateSavingsPlanInput) SetPurchaseTime

func (s *CreateSavingsPlanInput) SetPurchaseTime(v time.Time) *CreateSavingsPlanInput

SetPurchaseTime sets the PurchaseTime field's value.

func (*CreateSavingsPlanInput) SetSavingsPlanOfferingId

func (s *CreateSavingsPlanInput) SetSavingsPlanOfferingId(v string) *CreateSavingsPlanInput

SetSavingsPlanOfferingId sets the SavingsPlanOfferingId field's value.

func (*CreateSavingsPlanInput) SetTags

SetTags sets the Tags field's value.

func (*CreateSavingsPlanInput) SetUpfrontPaymentAmount

func (s *CreateSavingsPlanInput) SetUpfrontPaymentAmount(v string) *CreateSavingsPlanInput

SetUpfrontPaymentAmount sets the UpfrontPaymentAmount field's value.

func (CreateSavingsPlanInput) String

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 (*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) GoString

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 (*CreateSavingsPlanOutput) SetSavingsPlanId

func (s *CreateSavingsPlanOutput) SetSavingsPlanId(v string) *CreateSavingsPlanOutput

SetSavingsPlanId sets the SavingsPlanId field's value.

func (CreateSavingsPlanOutput) String

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

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 (DeleteQueuedSavingsPlanInput) GoString

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 (*DeleteQueuedSavingsPlanInput) SetSavingsPlanId

SetSavingsPlanId sets the SavingsPlanId field's value.

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

func (s *DeleteQueuedSavingsPlanInput) Validate() error

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

type DeleteQueuedSavingsPlanOutput

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

func (DeleteQueuedSavingsPlanOutput) GoString

GoString returns the string representation.

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

func (DeleteQueuedSavingsPlanOutput) 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

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) GoString

GoString returns the string representation.

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

func (*DescribeSavingsPlanRatesInput) SetFilters

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlanRatesInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlanRatesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlanRatesInput) SetSavingsPlanId

SetSavingsPlanId sets the SavingsPlanId field's value.

func (DescribeSavingsPlanRatesInput) 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 (*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) GoString

GoString returns the string representation.

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

func (*DescribeSavingsPlanRatesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlanRatesOutput) SetSavingsPlanId

SetSavingsPlanId sets the SavingsPlanId field's value.

func (*DescribeSavingsPlanRatesOutput) SetSearchResults

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlanRatesOutput) 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

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 []*string `locationName:"states" type:"list" enum:"SavingsPlanState"`
	// contains filtered or unexported fields
}

func (DescribeSavingsPlansInput) GoString

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 (*DescribeSavingsPlansInput) SetFilters

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansInput) SetSavingsPlanArns

func (s *DescribeSavingsPlansInput) SetSavingsPlanArns(v []*string) *DescribeSavingsPlansInput

SetSavingsPlanArns sets the SavingsPlanArns field's value.

func (*DescribeSavingsPlansInput) SetSavingsPlanIds

func (s *DescribeSavingsPlansInput) SetSavingsPlanIds(v []*string) *DescribeSavingsPlansInput

SetSavingsPlanIds sets the SavingsPlanIds field's value.

func (*DescribeSavingsPlansInput) SetStates

SetStates sets the States field's value.

func (DescribeSavingsPlansInput) String

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 (*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 []*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 (DescribeSavingsPlansOfferingRatesInput) GoString

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingRatesInput) SetFilters

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetOperations

SetOperations sets the Operations field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetProducts

SetProducts sets the Products field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanOfferingIds

SetSavingsPlanOfferingIds sets the SavingsPlanOfferingIds field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanPaymentOptions

SetSavingsPlanPaymentOptions sets the SavingsPlanPaymentOptions field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanTypes

SetSavingsPlanTypes sets the SavingsPlanTypes field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetServiceCodes

SetServiceCodes sets the ServiceCodes field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetUsageTypes

SetUsageTypes sets the UsageTypes field's value.

func (DescribeSavingsPlansOfferingRatesInput) 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

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) GoString

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingRatesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingRatesOutput) SetSearchResults

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlansOfferingRatesOutput) 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

type DescribeSavingsPlansOfferingsInput struct {

	// The currencies.
	Currencies []*string `locationName:"currencies" type:"list" enum:"CurrencyCode"`

	// 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 []*string `locationName:"paymentOptions" type:"list" enum:"SavingsPlanPaymentOption"`

	// The plan type.
	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 (DescribeSavingsPlansOfferingsInput) GoString

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingsInput) SetCurrencies

SetCurrencies sets the Currencies field's value.

func (*DescribeSavingsPlansOfferingsInput) SetDescriptions

SetDescriptions sets the Descriptions field's value.

func (*DescribeSavingsPlansOfferingsInput) SetDurations

SetDurations sets the Durations field's value.

func (*DescribeSavingsPlansOfferingsInput) SetFilters

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansOfferingsInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansOfferingsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingsInput) SetOfferingIds

SetOfferingIds sets the OfferingIds field's value.

func (*DescribeSavingsPlansOfferingsInput) SetOperations

SetOperations sets the Operations field's value.

func (*DescribeSavingsPlansOfferingsInput) SetPaymentOptions

SetPaymentOptions sets the PaymentOptions field's value.

func (*DescribeSavingsPlansOfferingsInput) SetPlanTypes

SetPlanTypes sets the PlanTypes field's value.

func (*DescribeSavingsPlansOfferingsInput) SetProductType

SetProductType sets the ProductType field's value.

func (*DescribeSavingsPlansOfferingsInput) SetServiceCodes

SetServiceCodes sets the ServiceCodes field's value.

func (*DescribeSavingsPlansOfferingsInput) SetUsageTypes

SetUsageTypes sets the UsageTypes field's value.

func (DescribeSavingsPlansOfferingsInput) 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

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) GoString

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingsOutput) SetSearchResults

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlansOfferingsOutput) 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

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) GoString

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 (*DescribeSavingsPlansOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOutput) SetSavingsPlans

SetSavingsPlans sets the SavingsPlans field's value.

func (DescribeSavingsPlansOutput) String

String returns the string representation.

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

type InternalServerException

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

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

An unexpected error occurred.

func (*InternalServerException) Code

func (s *InternalServerException) Code() string

Code returns the exception type name.

func (*InternalServerException) Error

func (s *InternalServerException) Error() string

func (InternalServerException) GoString

func (s InternalServerException) GoString() string

GoString returns the string representation.

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

func (*InternalServerException) Message

func (s *InternalServerException) Message() string

Message returns the exception's message.

func (*InternalServerException) OrigErr

func (s *InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServerException) RequestID

func (s *InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServerException) StatusCode

func (s *InternalServerException) StatusCode() int

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

func (InternalServerException) String

func (s InternalServerException) String() string

String returns the string representation.

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

type 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) GoString

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 (*ListTagsForResourceInput) SetResourceArn

SetResourceArn sets the ResourceArn field's value.

func (ListTagsForResourceInput) String

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 (*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) GoString

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 (*ListTagsForResourceOutput) SetTags

SetTags sets the Tags field's value.

func (ListTagsForResourceOutput) String

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

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 (ParentSavingsPlanOffering) GoString

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 (*ParentSavingsPlanOffering) SetCurrency

SetCurrency sets the Currency field's value.

func (*ParentSavingsPlanOffering) SetDurationSeconds

func (s *ParentSavingsPlanOffering) SetDurationSeconds(v int64) *ParentSavingsPlanOffering

SetDurationSeconds sets the DurationSeconds field's value.

func (*ParentSavingsPlanOffering) SetOfferingId

SetOfferingId sets the OfferingId field's value.

func (*ParentSavingsPlanOffering) SetPaymentOption

SetPaymentOption sets the PaymentOption field's value.

func (*ParentSavingsPlanOffering) SetPlanDescription

SetPlanDescription sets the PlanDescription field's value.

func (*ParentSavingsPlanOffering) SetPlanType

SetPlanType sets the PlanType field's value.

func (ParentSavingsPlanOffering) String

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

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 (*ResourceNotFoundException) Code

Code returns the exception type name.

func (*ResourceNotFoundException) Error

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation.

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

func (*ResourceNotFoundException) Message

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode

func (s *ResourceNotFoundException) StatusCode() int

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

func (ResourceNotFoundException) String

func (s ResourceNotFoundException) String() string

String returns the string representation.

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

type SavingsPlan

type SavingsPlan struct {

	// The hourly commitment, in USD.
	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 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 *string `locationName:"savingsPlanType" type:"string" enum:"SavingsPlanType"`

	// The start time.
	Start *string `locationName:"start" type:"string"`

	// The 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 (SavingsPlan) GoString

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 (*SavingsPlan) SetCommitment

func (s *SavingsPlan) SetCommitment(v string) *SavingsPlan

SetCommitment sets the Commitment field's value.

func (*SavingsPlan) SetCurrency

func (s *SavingsPlan) SetCurrency(v string) *SavingsPlan

SetCurrency sets the Currency field's value.

func (*SavingsPlan) SetDescription

func (s *SavingsPlan) SetDescription(v string) *SavingsPlan

SetDescription sets the Description field's value.

func (*SavingsPlan) SetEc2InstanceFamily

func (s *SavingsPlan) SetEc2InstanceFamily(v string) *SavingsPlan

SetEc2InstanceFamily sets the Ec2InstanceFamily field's value.

func (*SavingsPlan) SetEnd

func (s *SavingsPlan) SetEnd(v string) *SavingsPlan

SetEnd sets the End field's value.

func (*SavingsPlan) SetOfferingId

func (s *SavingsPlan) SetOfferingId(v string) *SavingsPlan

SetOfferingId sets the OfferingId field's value.

func (*SavingsPlan) SetPaymentOption

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

SetPaymentOption sets the PaymentOption field's value.

func (*SavingsPlan) SetProductTypes

func (s *SavingsPlan) SetProductTypes(v []*string) *SavingsPlan

SetProductTypes sets the ProductTypes field's value.

func (*SavingsPlan) SetRecurringPaymentAmount

func (s *SavingsPlan) SetRecurringPaymentAmount(v string) *SavingsPlan

SetRecurringPaymentAmount sets the RecurringPaymentAmount field's value.

func (*SavingsPlan) SetRegion

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

SetRegion sets the Region field's value.

func (*SavingsPlan) SetSavingsPlanArn

func (s *SavingsPlan) SetSavingsPlanArn(v string) *SavingsPlan

SetSavingsPlanArn sets the SavingsPlanArn field's value.

func (*SavingsPlan) SetSavingsPlanId

func (s *SavingsPlan) SetSavingsPlanId(v string) *SavingsPlan

SetSavingsPlanId sets the SavingsPlanId field's value.

func (*SavingsPlan) SetSavingsPlanType

func (s *SavingsPlan) SetSavingsPlanType(v string) *SavingsPlan

SetSavingsPlanType sets the SavingsPlanType field's value.

func (*SavingsPlan) SetStart

func (s *SavingsPlan) SetStart(v string) *SavingsPlan

SetStart sets the Start field's value.

func (*SavingsPlan) SetState

func (s *SavingsPlan) SetState(v string) *SavingsPlan

SetState sets the State field's value.

func (*SavingsPlan) SetTags

func (s *SavingsPlan) SetTags(v map[string]*string) *SavingsPlan

SetTags sets the Tags field's value.

func (*SavingsPlan) SetTermDurationInSeconds

func (s *SavingsPlan) SetTermDurationInSeconds(v int64) *SavingsPlan

SetTermDurationInSeconds sets the TermDurationInSeconds field's value.

func (*SavingsPlan) SetUpfrontPaymentAmount

func (s *SavingsPlan) SetUpfrontPaymentAmount(v string) *SavingsPlan

SetUpfrontPaymentAmount sets the UpfrontPaymentAmount field's value.

func (SavingsPlan) String

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

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

func (SavingsPlanFilter) GoString

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 (*SavingsPlanFilter) SetName

SetName sets the Name field's value.

func (*SavingsPlanFilter) SetValues

func (s *SavingsPlanFilter) SetValues(v []*string) *SavingsPlanFilter

SetValues sets the Values field's value.

func (SavingsPlanFilter) String

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

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 AWS 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 (SavingsPlanOffering) GoString

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 (*SavingsPlanOffering) SetCurrency

func (s *SavingsPlanOffering) SetCurrency(v string) *SavingsPlanOffering

SetCurrency sets the Currency field's value.

func (*SavingsPlanOffering) SetDescription

func (s *SavingsPlanOffering) SetDescription(v string) *SavingsPlanOffering

SetDescription sets the Description field's value.

func (*SavingsPlanOffering) SetDurationSeconds

func (s *SavingsPlanOffering) SetDurationSeconds(v int64) *SavingsPlanOffering

SetDurationSeconds sets the DurationSeconds field's value.

func (*SavingsPlanOffering) SetOfferingId

func (s *SavingsPlanOffering) SetOfferingId(v string) *SavingsPlanOffering

SetOfferingId sets the OfferingId field's value.

func (*SavingsPlanOffering) SetOperation

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

SetOperation sets the Operation field's value.

func (*SavingsPlanOffering) SetPaymentOption

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

SetPaymentOption sets the PaymentOption field's value.

func (*SavingsPlanOffering) SetPlanType

func (s *SavingsPlanOffering) SetPlanType(v string) *SavingsPlanOffering

SetPlanType sets the PlanType field's value.

func (*SavingsPlanOffering) SetProductTypes

func (s *SavingsPlanOffering) SetProductTypes(v []*string) *SavingsPlanOffering

SetProductTypes sets the ProductTypes field's value.

func (*SavingsPlanOffering) SetProperties

SetProperties sets the Properties field's value.

func (*SavingsPlanOffering) SetServiceCode

func (s *SavingsPlanOffering) SetServiceCode(v string) *SavingsPlanOffering

SetServiceCode sets the ServiceCode field's value.

func (*SavingsPlanOffering) SetUsageType

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

SetUsageType sets the UsageType field's value.

func (SavingsPlanOffering) String

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

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

func (SavingsPlanOfferingFilterElement) GoString

GoString returns the string representation.

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

func (*SavingsPlanOfferingFilterElement) SetName

SetName sets the Name field's value.

func (*SavingsPlanOfferingFilterElement) SetValues

SetValues sets the Values field's value.

func (SavingsPlanOfferingFilterElement) 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

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

func (SavingsPlanOfferingProperty) GoString

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 (*SavingsPlanOfferingProperty) SetName

SetName sets the Name field's value.

func (*SavingsPlanOfferingProperty) SetValue

SetValue sets the Value field's value.

func (SavingsPlanOfferingProperty) 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

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 *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 (SavingsPlanOfferingRate) GoString

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 (*SavingsPlanOfferingRate) SetOperation

SetOperation sets the Operation field's value.

func (*SavingsPlanOfferingRate) SetProductType

SetProductType sets the ProductType field's value.

func (*SavingsPlanOfferingRate) SetProperties

SetProperties sets the Properties field's value.

func (*SavingsPlanOfferingRate) SetRate

SetRate sets the Rate field's value.

func (*SavingsPlanOfferingRate) SetSavingsPlanOffering

SetSavingsPlanOffering sets the SavingsPlanOffering field's value.

func (*SavingsPlanOfferingRate) SetServiceCode

SetServiceCode sets the ServiceCode field's value.

func (*SavingsPlanOfferingRate) SetUnit

SetUnit sets the Unit field's value.

func (*SavingsPlanOfferingRate) SetUsageType

SetUsageType sets the UsageType field's value.

func (SavingsPlanOfferingRate) String

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

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

func (SavingsPlanOfferingRateFilterElement) GoString

GoString returns the string representation.

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

func (*SavingsPlanOfferingRateFilterElement) SetName

SetName sets the Name field's value.

func (*SavingsPlanOfferingRateFilterElement) SetValues

SetValues sets the Values field's value.

func (SavingsPlanOfferingRateFilterElement) 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

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) GoString

GoString returns the string representation.

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

func (*SavingsPlanOfferingRateProperty) SetName

SetName sets the Name field's value.

func (*SavingsPlanOfferingRateProperty) SetValue

SetValue sets the Value field's value.

func (SavingsPlanOfferingRateProperty) 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

type SavingsPlanRate struct {

	// The currency.
	Currency *string `locationName:"currency" type:"string" enum:"CurrencyCode"`

	// The specific AWS 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 (SavingsPlanRate) GoString

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 (*SavingsPlanRate) SetCurrency

func (s *SavingsPlanRate) SetCurrency(v string) *SavingsPlanRate

SetCurrency sets the Currency field's value.

func (*SavingsPlanRate) SetOperation

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

SetOperation sets the Operation field's value.

func (*SavingsPlanRate) SetProductType

func (s *SavingsPlanRate) SetProductType(v string) *SavingsPlanRate

SetProductType sets the ProductType field's value.

func (*SavingsPlanRate) SetProperties

SetProperties sets the Properties field's value.

func (*SavingsPlanRate) SetRate

func (s *SavingsPlanRate) SetRate(v string) *SavingsPlanRate

SetRate sets the Rate field's value.

func (*SavingsPlanRate) SetServiceCode

func (s *SavingsPlanRate) SetServiceCode(v string) *SavingsPlanRate

SetServiceCode sets the ServiceCode field's value.

func (*SavingsPlanRate) SetUnit

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

SetUnit sets the Unit field's value.

func (*SavingsPlanRate) SetUsageType

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

SetUsageType sets the UsageType field's value.

func (SavingsPlanRate) String

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

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

func (SavingsPlanRateFilter) GoString

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 (*SavingsPlanRateFilter) SetName

SetName sets the Name field's value.

func (*SavingsPlanRateFilter) SetValues

SetValues sets the Values field's value.

func (SavingsPlanRateFilter) String

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

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

func (SavingsPlanRateProperty) GoString

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 (*SavingsPlanRateProperty) SetName

SetName sets the Name field's value.

func (*SavingsPlanRateProperty) SetValue

SetValue sets the Value field's value.

func (SavingsPlanRateProperty) String

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

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

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 (*SavingsPlans) CreateSavingsPlan

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 (*SavingsPlans) CreateSavingsPlanRequest

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 (*SavingsPlans) CreateSavingsPlanWithContext

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 (*SavingsPlans) DeleteQueuedSavingsPlan

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 (*SavingsPlans) DeleteQueuedSavingsPlanRequest

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 (*SavingsPlans) DeleteQueuedSavingsPlanWithContext

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 (*SavingsPlans) DescribeSavingsPlanRates

func (c *SavingsPlans) DescribeSavingsPlanRates(input *DescribeSavingsPlanRatesInput) (*DescribeSavingsPlanRatesOutput, error)

DescribeSavingsPlanRates API operation for AWS Savings Plans.

Describes the specified Savings Plans rates.

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 (*SavingsPlans) DescribeSavingsPlanRatesRequest

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 (*SavingsPlans) DescribeSavingsPlanRatesWithContext

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 (*SavingsPlans) DescribeSavingsPlans

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 (*SavingsPlans) DescribeSavingsPlansOfferingRates

DescribeSavingsPlansOfferingRates API operation for AWS Savings Plans.

Describes the specified Savings Plans offering rates.

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 (*SavingsPlans) DescribeSavingsPlansOfferingRatesRequest

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 (*SavingsPlans) DescribeSavingsPlansOfferingRatesWithContext

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 (*SavingsPlans) DescribeSavingsPlansOfferings

DescribeSavingsPlansOfferings API operation for AWS Savings Plans.

Describes the specified Savings Plans offerings.

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 (*SavingsPlans) DescribeSavingsPlansOfferingsRequest

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 (*SavingsPlans) DescribeSavingsPlansOfferingsWithContext

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 (*SavingsPlans) DescribeSavingsPlansRequest

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 (*SavingsPlans) DescribeSavingsPlansWithContext

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 (*SavingsPlans) ListTagsForResource

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 (*SavingsPlans) ListTagsForResourceRequest

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 (*SavingsPlans) ListTagsForResourceWithContext

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 (*SavingsPlans) TagResource

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 (*SavingsPlans) TagResourceRequest

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 (*SavingsPlans) TagResourceWithContext

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 (*SavingsPlans) UntagResource

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 (*SavingsPlans) UntagResourceRequest

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 (*SavingsPlans) UntagResourceWithContext

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

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 (*ServiceQuotaExceededException) Code

Code returns the exception type name.

func (*ServiceQuotaExceededException) Error

func (ServiceQuotaExceededException) GoString

GoString returns the string representation.

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

func (*ServiceQuotaExceededException) Message

Message returns the exception's message.

func (*ServiceQuotaExceededException) OrigErr

func (s *ServiceQuotaExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ServiceQuotaExceededException) RequestID

func (s *ServiceQuotaExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ServiceQuotaExceededException) StatusCode

func (s *ServiceQuotaExceededException) StatusCode() int

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

func (ServiceQuotaExceededException) 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

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) GoString

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 (*TagResourceInput) SetResourceArn

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

SetResourceArn sets the ResourceArn field's value.

func (*TagResourceInput) SetTags

func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput

SetTags sets the Tags field's value.

func (TagResourceInput) String

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 (*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) GoString

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 (TagResourceOutput) String

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

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) GoString

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 (*UntagResourceInput) SetResourceArn

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

SetResourceArn sets the ResourceArn field's value.

func (*UntagResourceInput) SetTagKeys

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String

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 (*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) GoString

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 (UntagResourceOutput) String

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

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 (*ValidationException) Code

func (s *ValidationException) Code() string

Code returns the exception type name.

func (*ValidationException) Error

func (s *ValidationException) Error() string

func (ValidationException) GoString

func (s ValidationException) GoString() string

GoString returns the string representation.

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

func (*ValidationException) Message

func (s *ValidationException) Message() string

Message returns the exception's message.

func (*ValidationException) OrigErr

func (s *ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ValidationException) RequestID

func (s *ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ValidationException) StatusCode

func (s *ValidationException) StatusCode() int

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

func (ValidationException) String

func (s ValidationException) String() string

String returns the string representation.

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

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.

Jump to

Keyboard shortcuts

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