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

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 Amazon Web Services usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage per hour, in the specified currency, for a term of one or three years, and receive a lower price for that usage. For more information, see the Amazon Web Services 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

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

Types ▾

type SavingsPlans
func New(p client.ConfigProvider, cfgs ...*aws.Config) *SavingsPlans
func (c *SavingsPlans) CreateSavingsPlan(input *CreateSavingsPlanInput) (*CreateSavingsPlanOutput, error)
func (c *SavingsPlans) CreateSavingsPlanRequest(input *CreateSavingsPlanInput) (req *request.Request, output *CreateSavingsPlanOutput)
func (c *SavingsPlans) CreateSavingsPlanWithContext(ctx aws.Context, input *CreateSavingsPlanInput, opts ...request.Option) (*CreateSavingsPlanOutput, error)
func (c *SavingsPlans) DeleteQueuedSavingsPlan(input *DeleteQueuedSavingsPlanInput) (*DeleteQueuedSavingsPlanOutput, error)
func (c *SavingsPlans) DeleteQueuedSavingsPlanRequest(input *DeleteQueuedSavingsPlanInput) (req *request.Request, output *DeleteQueuedSavingsPlanOutput)
func (c *SavingsPlans) DeleteQueuedSavingsPlanWithContext(ctx aws.Context, input *DeleteQueuedSavingsPlanInput, opts ...request.Option) (*DeleteQueuedSavingsPlanOutput, error)
func (c *SavingsPlans) DescribeSavingsPlanRates(input *DescribeSavingsPlanRatesInput) (*DescribeSavingsPlanRatesOutput, error)
func (c *SavingsPlans) DescribeSavingsPlanRatesRequest(input *DescribeSavingsPlanRatesInput) (req *request.Request, output *DescribeSavingsPlanRatesOutput)
func (c *SavingsPlans) DescribeSavingsPlanRatesWithContext(ctx aws.Context, input *DescribeSavingsPlanRatesInput, opts ...request.Option) (*DescribeSavingsPlanRatesOutput, error)
func (c *SavingsPlans) DescribeSavingsPlans(input *DescribeSavingsPlansInput) (*DescribeSavingsPlansOutput, error)
func (c *SavingsPlans) DescribeSavingsPlansOfferingRates(input *DescribeSavingsPlansOfferingRatesInput) (*DescribeSavingsPlansOfferingRatesOutput, error)
func (c *SavingsPlans) DescribeSavingsPlansOfferingRatesRequest(input *DescribeSavingsPlansOfferingRatesInput) (req *request.Request, output *DescribeSavingsPlansOfferingRatesOutput)
func (c *SavingsPlans) DescribeSavingsPlansOfferingRatesWithContext(ctx aws.Context, input *DescribeSavingsPlansOfferingRatesInput, opts ...request.Option) (*DescribeSavingsPlansOfferingRatesOutput, error)
func (c *SavingsPlans) DescribeSavingsPlansOfferings(input *DescribeSavingsPlansOfferingsInput) (*DescribeSavingsPlansOfferingsOutput, error)
func (c *SavingsPlans) DescribeSavingsPlansOfferingsRequest(input *DescribeSavingsPlansOfferingsInput) (req *request.Request, output *DescribeSavingsPlansOfferingsOutput)
func (c *SavingsPlans) DescribeSavingsPlansOfferingsWithContext(ctx aws.Context, input *DescribeSavingsPlansOfferingsInput, opts ...request.Option) (*DescribeSavingsPlansOfferingsOutput, error)
func (c *SavingsPlans) DescribeSavingsPlansRequest(input *DescribeSavingsPlansInput) (req *request.Request, output *DescribeSavingsPlansOutput)
func (c *SavingsPlans) DescribeSavingsPlansWithContext(ctx aws.Context, input *DescribeSavingsPlansInput, opts ...request.Option) (*DescribeSavingsPlansOutput, error)
func (c *SavingsPlans) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
func (c *SavingsPlans) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)
func (c *SavingsPlans) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)
func (c *SavingsPlans) ReturnSavingsPlan(input *ReturnSavingsPlanInput) (*ReturnSavingsPlanOutput, error)
func (c *SavingsPlans) ReturnSavingsPlanRequest(input *ReturnSavingsPlanInput) (req *request.Request, output *ReturnSavingsPlanOutput)
func (c *SavingsPlans) ReturnSavingsPlanWithContext(ctx aws.Context, input *ReturnSavingsPlanInput, opts ...request.Option) (*ReturnSavingsPlanOutput, error)
func (c *SavingsPlans) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
func (c *SavingsPlans) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
func (c *SavingsPlans) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
func (c *SavingsPlans) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
func (c *SavingsPlans) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
func (c *SavingsPlans) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
func CurrencyCode_Values() []string
func SavingsPlanOfferingFilterAttribute_Values() []string
func SavingsPlanOfferingPropertyKey_Values() []string
func SavingsPlanPaymentOption_Values() []string
func SavingsPlanProductType_Values() []string
func SavingsPlanRateFilterAttribute_Values() []string
func SavingsPlanRateFilterName_Values() []string
func SavingsPlanRatePropertyKey_Values() []string
func SavingsPlanRateServiceCode_Values() []string
func SavingsPlanRateUnit_Values() []string
func SavingsPlanState_Values() []string
func SavingsPlanType_Values() []string
func SavingsPlansFilterName_Values() []string
type CreateSavingsPlanInput
type CreateSavingsPlanOutput
type DeleteQueuedSavingsPlanInput
type DeleteQueuedSavingsPlanOutput
type DescribeSavingsPlanRatesInput
type DescribeSavingsPlanRatesOutput
type DescribeSavingsPlansInput
type DescribeSavingsPlansOfferingRatesInput
type DescribeSavingsPlansOfferingRatesOutput
type DescribeSavingsPlansOfferingsInput
type DescribeSavingsPlansOfferingsOutput
type DescribeSavingsPlansOutput
type InternalServerException
type ListTagsForResourceInput
type ListTagsForResourceOutput
type ParentSavingsPlanOffering
type ResourceNotFoundException
type ReturnSavingsPlanInput
type ReturnSavingsPlanOutput
type SavingsPlan
type SavingsPlanFilter
type SavingsPlanOffering
type SavingsPlanOfferingFilterElement
type SavingsPlanOfferingProperty
type SavingsPlanOfferingRate
type SavingsPlanOfferingRateFilterElement
type SavingsPlanOfferingRateProperty
type SavingsPlanRate
type SavingsPlanRateFilter
type SavingsPlanRateProperty
type ServiceQuotaExceededException
type TagResourceInput
type TagResourceOutput
type UntagResourceInput
type UntagResourceOutput
type ValidationException

Constants ▾

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

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

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

    // SavingsPlanOfferingPropertyKeyInstanceFamily is a SavingsPlanOfferingPropertyKey enum value
    SavingsPlanOfferingPropertyKeyInstanceFamily = "instanceFamily"
)
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"
)
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"
)
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"
)
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"
)
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"
)
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"
)
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"
)
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"

    // SavingsPlanStatePendingReturn is a SavingsPlanState enum value
    SavingsPlanStatePendingReturn = "pending-return"

    // SavingsPlanStateReturned is a SavingsPlanState enum value
    SavingsPlanStateReturned = "returned"
)
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"
)
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"
)
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"
)
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

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

type CreateSavingsPlanInput

type CreateSavingsPlanInput struct {

    // A unique, case-sensitive identifier that you provide to ensure the idempotency
    // of the request.
    ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

    // The hourly commitment, in the same currency of the savingsPlanOfferingId.
    // This is a value between 0.001 and 1 million. You cannot specify more than
    // five digits after the decimal point.
    //
    // Commitment is a required field
    Commitment *string `locationName:"commitment" type:"string" required:"true"`

    // The purchase time of the Savings Plan in UTC format (YYYY-MM-DDTHH:MM:SSZ).
    PurchaseTime *time.Time `locationName:"purchaseTime" type:"timestamp"`

    // The ID of the offering.
    //
    // SavingsPlanOfferingId is a required field
    SavingsPlanOfferingId *string `locationName:"savingsPlanOfferingId" type:"string" required:"true"`

    // One or more tags.
    Tags map[string]*string `locationName:"tags" type:"map"`

    // The up-front payment amount. This is a whole number between 50 and 99 percent
    // of the total value of the Savings Plan. This parameter is only supported
    // if the payment option is Partial Upfront.
    UpfrontPaymentAmount *string `locationName:"upfrontPaymentAmount" type:"string"`
    // contains filtered or unexported fields
}

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

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

SetClientToken sets the ClientToken field's value.

func (*CreateSavingsPlanInput) SetCommitment

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

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

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

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

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (DeleteQueuedSavingsPlanInput) String

func (s DeleteQueuedSavingsPlanInput) String() string

String returns the string representation.

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

func (*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

func (s DeleteQueuedSavingsPlanOutput) GoString() string

GoString returns the string representation.

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

func (DeleteQueuedSavingsPlanOutput) String

func (s DeleteQueuedSavingsPlanOutput) String() string

String returns the string representation.

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

type DescribeSavingsPlanRatesInput

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

func (s DescribeSavingsPlanRatesInput) GoString() string

GoString returns the string representation.

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

func (*DescribeSavingsPlanRatesInput) SetFilters

func (s *DescribeSavingsPlanRatesInput) SetFilters(v []*SavingsPlanRateFilter) *DescribeSavingsPlanRatesInput

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlanRatesInput) SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlanRatesInput) SetNextToken

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlanRatesInput) SetSavingsPlanId

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (DescribeSavingsPlanRatesInput) String

func (s DescribeSavingsPlanRatesInput) String() string

String returns the string representation.

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

func (*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 Plan rates.
    SearchResults []*SavingsPlanRate `locationName:"searchResults" type:"list"`
    // contains filtered or unexported fields
}

func (DescribeSavingsPlanRatesOutput) GoString

func (s DescribeSavingsPlanRatesOutput) GoString() string

GoString returns the string representation.

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

func (*DescribeSavingsPlanRatesOutput) SetNextToken

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlanRatesOutput) SetSavingsPlanId

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (*DescribeSavingsPlanRatesOutput) SetSearchResults

func (s *DescribeSavingsPlanRatesOutput) SetSearchResults(v []*SavingsPlanRate) *DescribeSavingsPlanRatesOutput

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlanRatesOutput) String

func (s DescribeSavingsPlanRatesOutput) String() string

String returns the string representation.

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

type DescribeSavingsPlansInput

type DescribeSavingsPlansInput struct {

    // The filters.
    Filters []*SavingsPlanFilter `locationName:"filters" type:"list"`

    // The maximum number of results to return with a single call. To retrieve additional
    // results, make another call with the returned token value.
    MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

    // The token for the next page of results.
    NextToken *string `locationName:"nextToken" type:"string"`

    // The Amazon Resource Names (ARN) of the Savings Plans.
    SavingsPlanArns []*string `locationName:"savingsPlanArns" type:"list"`

    // The IDs of the Savings Plans.
    SavingsPlanIds []*string `locationName:"savingsPlanIds" type:"list"`

    // The current states of the Savings Plans.
    States []*string `locationName:"states" type:"list" enum:"SavingsPlanState"`
    // contains filtered or unexported fields
}

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

func (s *DescribeSavingsPlansInput) SetFilters(v []*SavingsPlanFilter) *DescribeSavingsPlansInput

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansInput) SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansInput) SetNextToken

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

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

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

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 Amazon Web Services operation for the line item in the billing
    // report.
    Operations []*string `locationName:"operations" type:"list"`

    // The Amazon Web Services products.
    Products []*string `locationName:"products" type:"list" enum:"SavingsPlanProductType"`

    // The IDs of the offerings.
    SavingsPlanOfferingIds []*string `locationName:"savingsPlanOfferingIds" type:"list"`

    // The payment options.
    SavingsPlanPaymentOptions []*string `locationName:"savingsPlanPaymentOptions" type:"list" enum:"SavingsPlanPaymentOption"`

    // The plan types.
    SavingsPlanTypes []*string `locationName:"savingsPlanTypes" type:"list" enum:"SavingsPlanType"`

    // The services.
    ServiceCodes []*string `locationName:"serviceCodes" type:"list" enum:"SavingsPlanRateServiceCode"`

    // The usage details of the line item in the billing report.
    UsageTypes []*string `locationName:"usageTypes" type:"list"`
    // contains filtered or unexported fields
}

func (DescribeSavingsPlansOfferingRatesInput) GoString

func (s DescribeSavingsPlansOfferingRatesInput) GoString() string

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingRatesInput) SetFilters

func (s *DescribeSavingsPlansOfferingRatesInput) SetFilters(v []*SavingsPlanOfferingRateFilterElement) *DescribeSavingsPlansOfferingRatesInput

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetNextToken

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetOperations

func (s *DescribeSavingsPlansOfferingRatesInput) SetOperations(v []*string) *DescribeSavingsPlansOfferingRatesInput

SetOperations sets the Operations field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetProducts

func (s *DescribeSavingsPlansOfferingRatesInput) SetProducts(v []*string) *DescribeSavingsPlansOfferingRatesInput

SetProducts sets the Products field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanOfferingIds

func (s *DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanOfferingIds(v []*string) *DescribeSavingsPlansOfferingRatesInput

SetSavingsPlanOfferingIds sets the SavingsPlanOfferingIds field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanPaymentOptions

func (s *DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanPaymentOptions(v []*string) *DescribeSavingsPlansOfferingRatesInput

SetSavingsPlanPaymentOptions sets the SavingsPlanPaymentOptions field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanTypes

func (s *DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanTypes(v []*string) *DescribeSavingsPlansOfferingRatesInput

SetSavingsPlanTypes sets the SavingsPlanTypes field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetServiceCodes

func (s *DescribeSavingsPlansOfferingRatesInput) SetServiceCodes(v []*string) *DescribeSavingsPlansOfferingRatesInput

SetServiceCodes sets the ServiceCodes field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetUsageTypes

func (s *DescribeSavingsPlansOfferingRatesInput) SetUsageTypes(v []*string) *DescribeSavingsPlansOfferingRatesInput

SetUsageTypes sets the UsageTypes field's value.

func (DescribeSavingsPlansOfferingRatesInput) String

func (s DescribeSavingsPlansOfferingRatesInput) String() string

String returns the string representation.

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

type DescribeSavingsPlansOfferingRatesOutput

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

func (s DescribeSavingsPlansOfferingRatesOutput) GoString() string

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingRatesOutput) SetNextToken

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingRatesOutput) SetSearchResults

func (s *DescribeSavingsPlansOfferingRatesOutput) SetSearchResults(v []*SavingsPlanOfferingRate) *DescribeSavingsPlansOfferingRatesOutput

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlansOfferingRatesOutput) String

func (s DescribeSavingsPlansOfferingRatesOutput) String() string

String returns the string representation.

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

type DescribeSavingsPlansOfferingsInput

type DescribeSavingsPlansOfferingsInput struct {

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

    // The descriptions.
    Descriptions []*string `locationName:"descriptions" type:"list"`

    // The duration, in seconds.
    Durations []*int64 `locationName:"durations" type:"list"`

    // The filters.
    Filters []*SavingsPlanOfferingFilterElement `locationName:"filters" type:"list"`

    // The maximum number of results to return with a single call. To retrieve additional
    // results, make another call with the returned token value.
    MaxResults *int64 `locationName:"maxResults" type:"integer"`

    // The token for the next page of results.
    NextToken *string `locationName:"nextToken" type:"string"`

    // The IDs of the offerings.
    OfferingIds []*string `locationName:"offeringIds" type:"list"`

    // The specific Amazon Web Services operation for the line item in the billing
    // report.
    Operations []*string `locationName:"operations" type:"list"`

    // The payment options.
    PaymentOptions []*string `locationName:"paymentOptions" type:"list" enum:"SavingsPlanPaymentOption"`

    // The plan types.
    PlanTypes []*string `locationName:"planTypes" type:"list" enum:"SavingsPlanType"`

    // The product type.
    ProductType *string `locationName:"productType" type:"string" enum:"SavingsPlanProductType"`

    // The services.
    ServiceCodes []*string `locationName:"serviceCodes" type:"list"`

    // The usage details of the line item in the billing report.
    UsageTypes []*string `locationName:"usageTypes" type:"list"`
    // contains filtered or unexported fields
}

func (DescribeSavingsPlansOfferingsInput) GoString

func (s DescribeSavingsPlansOfferingsInput) GoString() string

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingsInput) SetCurrencies

func (s *DescribeSavingsPlansOfferingsInput) SetCurrencies(v []*string) *DescribeSavingsPlansOfferingsInput

SetCurrencies sets the Currencies field's value.

func (*DescribeSavingsPlansOfferingsInput) SetDescriptions

func (s *DescribeSavingsPlansOfferingsInput) SetDescriptions(v []*string) *DescribeSavingsPlansOfferingsInput

SetDescriptions sets the Descriptions field's value.

func (*DescribeSavingsPlansOfferingsInput) SetDurations

func (s *DescribeSavingsPlansOfferingsInput) SetDurations(v []*int64) *DescribeSavingsPlansOfferingsInput

SetDurations sets the Durations field's value.

func (*DescribeSavingsPlansOfferingsInput) SetFilters

func (s *DescribeSavingsPlansOfferingsInput) SetFilters(v []*SavingsPlanOfferingFilterElement) *DescribeSavingsPlansOfferingsInput

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansOfferingsInput) SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansOfferingsInput) SetNextToken

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingsInput) SetOfferingIds

func (s *DescribeSavingsPlansOfferingsInput) SetOfferingIds(v []*string) *DescribeSavingsPlansOfferingsInput

SetOfferingIds sets the OfferingIds field's value.

func (*DescribeSavingsPlansOfferingsInput) SetOperations

func (s *DescribeSavingsPlansOfferingsInput) SetOperations(v []*string) *DescribeSavingsPlansOfferingsInput

SetOperations sets the Operations field's value.

func (*DescribeSavingsPlansOfferingsInput) SetPaymentOptions

func (s *DescribeSavingsPlansOfferingsInput) SetPaymentOptions(v []*string) *DescribeSavingsPlansOfferingsInput

SetPaymentOptions sets the PaymentOptions field's value.

func (*DescribeSavingsPlansOfferingsInput) SetPlanTypes

func (s *DescribeSavingsPlansOfferingsInput) SetPlanTypes(v []*string) *DescribeSavingsPlansOfferingsInput

SetPlanTypes sets the PlanTypes field's value.

func (*DescribeSavingsPlansOfferingsInput) SetProductType

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

SetProductType sets the ProductType field's value.

func (*DescribeSavingsPlansOfferingsInput) SetServiceCodes

func (s *DescribeSavingsPlansOfferingsInput) SetServiceCodes(v []*string) *DescribeSavingsPlansOfferingsInput

SetServiceCodes sets the ServiceCodes field's value.

func (*DescribeSavingsPlansOfferingsInput) SetUsageTypes

func (s *DescribeSavingsPlansOfferingsInput) SetUsageTypes(v []*string) *DescribeSavingsPlansOfferingsInput

SetUsageTypes sets the UsageTypes field's value.

func (DescribeSavingsPlansOfferingsInput) String

func (s DescribeSavingsPlansOfferingsInput) String() string

String returns the string representation.

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

type DescribeSavingsPlansOfferingsOutput

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

func (s DescribeSavingsPlansOfferingsOutput) GoString() string

GoString returns the string representation.

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

func (*DescribeSavingsPlansOfferingsOutput) SetNextToken

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingsOutput) SetSearchResults

func (s *DescribeSavingsPlansOfferingsOutput) SetSearchResults(v []*SavingsPlanOffering) *DescribeSavingsPlansOfferingsOutput

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlansOfferingsOutput) String

func (s DescribeSavingsPlansOfferingsOutput) String() string

String returns the string representation.

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

type DescribeSavingsPlansOutput

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

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOutput) SetSavingsPlans

func (s *DescribeSavingsPlansOutput) SetSavingsPlans(v []*SavingsPlan) *DescribeSavingsPlansOutput

SetSavingsPlans sets the SavingsPlans field's value.

func (DescribeSavingsPlansOutput) String

func (s DescribeSavingsPlansOutput) String() string

String returns the string representation.

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

type InternalServerException

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

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

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

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

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

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

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

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

SetOfferingId sets the OfferingId field's value.

func (*ParentSavingsPlanOffering) SetPaymentOption

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

SetPaymentOption sets the PaymentOption field's value.

func (*ParentSavingsPlanOffering) SetPlanDescription

func (s *ParentSavingsPlanOffering) SetPlanDescription(v string) *ParentSavingsPlanOffering

SetPlanDescription sets the PlanDescription field's value.

func (*ParentSavingsPlanOffering) SetPlanType

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

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

func (s *ResourceNotFoundException) Code() string

Code returns the exception type name.

func (*ResourceNotFoundException) Error

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation.

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

func (*ResourceNotFoundException) Message

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode

func (s *ResourceNotFoundException) StatusCode() int

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

func (ResourceNotFoundException) String

func (s ResourceNotFoundException) String() string

String returns the string representation.

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

type ReturnSavingsPlanInput

type ReturnSavingsPlanInput struct {

    // A unique, case-sensitive identifier that you provide to ensure the idempotency
    // of the request.
    ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

    // The ID of the Savings Plan.
    //
    // SavingsPlanId is a required field
    SavingsPlanId *string `locationName:"savingsPlanId" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (ReturnSavingsPlanInput) GoString

func (s ReturnSavingsPlanInput) GoString() string

GoString returns the string representation.

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

func (*ReturnSavingsPlanInput) SetClientToken

func (s *ReturnSavingsPlanInput) SetClientToken(v string) *ReturnSavingsPlanInput

SetClientToken sets the ClientToken field's value.

func (*ReturnSavingsPlanInput) SetSavingsPlanId

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (ReturnSavingsPlanInput) String

func (s ReturnSavingsPlanInput) String() string

String returns the string representation.

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

func (*ReturnSavingsPlanInput) Validate

func (s *ReturnSavingsPlanInput) Validate() error

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

type ReturnSavingsPlanOutput

type ReturnSavingsPlanOutput struct {

    // The ID of the Savings Plan.
    SavingsPlanId *string `locationName:"savingsPlanId" type:"string"`
    // contains filtered or unexported fields
}

func (ReturnSavingsPlanOutput) GoString

func (s ReturnSavingsPlanOutput) GoString() string

GoString returns the string representation.

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

func (*ReturnSavingsPlanOutput) SetSavingsPlanId

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (ReturnSavingsPlanOutput) String

func (s ReturnSavingsPlanOutput) String() string

String returns the string representation.

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

type SavingsPlan

type SavingsPlan struct {

    // The hourly commitment amount in the specified currency.
    Commitment *string `locationName:"commitment" type:"string"`

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

    // The description.
    Description *string `locationName:"description" type:"string"`

    // The EC2 instance family.
    Ec2InstanceFamily *string `locationName:"ec2InstanceFamily" type:"string"`

    // The end time.
    End *string `locationName:"end" type:"string"`

    // The ID of the offering.
    OfferingId *string `locationName:"offeringId" type:"string"`

    // The payment option.
    PaymentOption *string `locationName:"paymentOption" type:"string" enum:"SavingsPlanPaymentOption"`

    // The product types.
    ProductTypes []*string `locationName:"productTypes" type:"list" enum:"SavingsPlanProductType"`

    // The recurring payment amount.
    RecurringPaymentAmount *string `locationName:"recurringPaymentAmount" type:"string"`

    // The Amazon Web Services Region.
    Region *string `locationName:"region" type:"string"`

    // The time until when a return for the Savings Plan can be requested. If the
    // Savings Plan is not returnable, the field reflects the Savings Plan start
    // time.
    ReturnableUntil *string `locationName:"returnableUntil" type:"string"`

    // The Amazon Resource Name (ARN) of the Savings Plan.
    SavingsPlanArn *string `locationName:"savingsPlanArn" type:"string"`

    // The ID of the Savings Plan.
    SavingsPlanId *string `locationName:"savingsPlanId" type:"string"`

    // The plan type.
    SavingsPlanType *string `locationName:"savingsPlanType" type:"string" enum:"SavingsPlanType"`

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

    // The current state.
    State *string `locationName:"state" type:"string" enum:"SavingsPlanState"`

    // One or more tags.
    Tags map[string]*string `locationName:"tags" type:"map"`

    // The duration of the term, in seconds.
    TermDurationInSeconds *int64 `locationName:"termDurationInSeconds" type:"long"`

    // The up-front payment amount.
    UpfrontPaymentAmount *string `locationName:"upfrontPaymentAmount" type:"string"`
    // contains filtered or unexported fields
}

Information about a Savings Plan.

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

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

SetReturnableUntil sets the ReturnableUntil 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 Savings Plan 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

func (s *SavingsPlanFilter) SetName(v string) *SavingsPlanFilter

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 Amazon Web Services operation for the line item in the billing
    // report.
    Operation *string `locationName:"operation" type:"string"`

    // The payment option.
    PaymentOption *string `locationName:"paymentOption" type:"string" enum:"SavingsPlanPaymentOption"`

    // The plan type.
    PlanType *string `locationName:"planType" type:"string" enum:"SavingsPlanType"`

    // The product type.
    ProductTypes []*string `locationName:"productTypes" type:"list" enum:"SavingsPlanProductType"`

    // The properties.
    Properties []*SavingsPlanOfferingProperty `locationName:"properties" type:"list"`

    // The service.
    ServiceCode *string `locationName:"serviceCode" type:"string"`

    // The usage details of the line item in the billing report.
    UsageType *string `locationName:"usageType" type:"string"`
    // contains filtered or unexported fields
}

Information about a Savings Plan offering.

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

func (s *SavingsPlanOffering) SetProperties(v []*SavingsPlanOfferingProperty) *SavingsPlanOffering

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 Savings Plan offering filter.

func (SavingsPlanOfferingFilterElement) GoString

func (s SavingsPlanOfferingFilterElement) GoString() string

GoString returns the string representation.

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

func (*SavingsPlanOfferingFilterElement) SetName

func (s *SavingsPlanOfferingFilterElement) SetName(v string) *SavingsPlanOfferingFilterElement

SetName sets the Name field's value.

func (*SavingsPlanOfferingFilterElement) SetValues

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

SetValues sets the Values field's value.

func (SavingsPlanOfferingFilterElement) String

func (s SavingsPlanOfferingFilterElement) String() string

String returns the string representation.

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

type SavingsPlanOfferingProperty

type SavingsPlanOfferingProperty struct {

    // The property name.
    Name *string `locationName:"name" type:"string" enum:"SavingsPlanOfferingPropertyKey"`

    // The property value.
    Value *string `locationName:"value" type:"string"`
    // contains filtered or unexported fields
}

Information about a Savings Plan offering property.

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

func (s *SavingsPlanOfferingProperty) SetName(v string) *SavingsPlanOfferingProperty

SetName sets the Name field's value.

func (*SavingsPlanOfferingProperty) SetValue

func (s *SavingsPlanOfferingProperty) SetValue(v string) *SavingsPlanOfferingProperty

SetValue sets the Value field's value.

func (SavingsPlanOfferingProperty) String

func (s SavingsPlanOfferingProperty) String() string

String returns the string representation.

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

type SavingsPlanOfferingRate

type SavingsPlanOfferingRate struct {

    // The specific Amazon Web Services operation for the line item in the billing
    // report.
    Operation *string `locationName:"operation" type:"string"`

    // The product type.
    ProductType *string `locationName:"productType" type:"string" enum:"SavingsPlanProductType"`

    // The properties.
    Properties []*SavingsPlanOfferingRateProperty `locationName:"properties" type:"list"`

    // The Savings Plan rate.
    Rate *string `locationName:"rate" type:"string"`

    // The Savings Plan offering.
    SavingsPlanOffering *ParentSavingsPlanOffering `locationName:"savingsPlanOffering" type:"structure"`

    // The service.
    ServiceCode *string `locationName:"serviceCode" type:"string" enum:"SavingsPlanRateServiceCode"`

    // The unit.
    Unit *string `locationName:"unit" type:"string" enum:"SavingsPlanRateUnit"`

    // The usage details of the line item in the billing report.
    UsageType *string `locationName:"usageType" type:"string"`
    // contains filtered or unexported fields
}

Information about a Savings Plan offering rate.

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

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

SetOperation sets the Operation field's value.

func (*SavingsPlanOfferingRate) SetProductType

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

SetProductType sets the ProductType field's value.

func (*SavingsPlanOfferingRate) SetProperties

func (s *SavingsPlanOfferingRate) SetProperties(v []*SavingsPlanOfferingRateProperty) *SavingsPlanOfferingRate

SetProperties sets the Properties field's value.

func (*SavingsPlanOfferingRate) SetRate

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

SetRate sets the Rate field's value.

func (*SavingsPlanOfferingRate) SetSavingsPlanOffering

func (s *SavingsPlanOfferingRate) SetSavingsPlanOffering(v *ParentSavingsPlanOffering) *SavingsPlanOfferingRate

SetSavingsPlanOffering sets the SavingsPlanOffering field's value.

func (*SavingsPlanOfferingRate) SetServiceCode

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

SetServiceCode sets the ServiceCode field's value.

func (*SavingsPlanOfferingRate) SetUnit

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

SetUnit sets the Unit field's value.

func (*SavingsPlanOfferingRate) SetUsageType

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

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 Savings Plan offering rate filter.

func (SavingsPlanOfferingRateFilterElement) GoString

func (s SavingsPlanOfferingRateFilterElement) GoString() string

GoString returns the string representation.

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

func (*SavingsPlanOfferingRateFilterElement) SetName

func (s *SavingsPlanOfferingRateFilterElement) SetName(v string) *SavingsPlanOfferingRateFilterElement

SetName sets the Name field's value.

func (*SavingsPlanOfferingRateFilterElement) SetValues

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

SetValues sets the Values field's value.

func (SavingsPlanOfferingRateFilterElement) String

func (s SavingsPlanOfferingRateFilterElement) String() string

String returns the string representation.

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

type SavingsPlanOfferingRateProperty

type SavingsPlanOfferingRateProperty struct {

    // The property name.
    Name *string `locationName:"name" type:"string"`

    // The property value.
    Value *string `locationName:"value" type:"string"`
    // contains filtered or unexported fields
}

Information about a Savings Plan offering rate property.

func (SavingsPlanOfferingRateProperty) GoString

func (s SavingsPlanOfferingRateProperty) GoString() string

GoString returns the string representation.

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

func (*SavingsPlanOfferingRateProperty) SetName

func (s *SavingsPlanOfferingRateProperty) SetName(v string) *SavingsPlanOfferingRateProperty

SetName sets the Name field's value.

func (*SavingsPlanOfferingRateProperty) SetValue

func (s *SavingsPlanOfferingRateProperty) SetValue(v string) *SavingsPlanOfferingRateProperty

SetValue sets the Value field's value.

func (SavingsPlanOfferingRateProperty) String

func (s SavingsPlanOfferingRateProperty) String() string

String returns the string representation.

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

type SavingsPlanRate

type SavingsPlanRate struct {

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

    // The specific Amazon Web Services operation for the line item in the billing
    // report.
    Operation *string `locationName:"operation" type:"string"`

    // The product type.
    ProductType *string `locationName:"productType" type:"string" enum:"SavingsPlanProductType"`

    // The properties.
    Properties []*SavingsPlanRateProperty `locationName:"properties" type:"list"`

    // The rate.
    Rate *string `locationName:"rate" type:"string"`

    // The service.
    ServiceCode *string `locationName:"serviceCode" type:"string" enum:"SavingsPlanRateServiceCode"`

    // The unit.
    Unit *string `locationName:"unit" type:"string" enum:"SavingsPlanRateUnit"`

    // The usage details of the line item in the billing report.
    UsageType *string `locationName:"usageType" type:"string"`
    // contains filtered or unexported fields
}

Information about a Savings Plan rate.

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

func (s *SavingsPlanRate) SetProperties(v []*SavingsPlanRateProperty) *SavingsPlanRate

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 Savings Plan rate 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

func (s *SavingsPlanRateFilter) SetName(v string) *SavingsPlanRateFilter

SetName sets the Name field's value.

func (*SavingsPlanRateFilter) SetValues

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

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 Savings Plan rate 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

func (s *SavingsPlanRateProperty) SetName(v string) *SavingsPlanRateProperty

SetName sets the Name field's value.

func (*SavingsPlanRateProperty) SetValue

func (s *SavingsPlanRateProperty) SetValue(v string) *SavingsPlanRateProperty

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 rates for the specified Savings Plan.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Savings Plans's API operation DescribeSavingsPlanRates for usage and error information.

Returned Error Types:

  • ResourceNotFoundException The specified resource was not found.

  • ValidationException One of the input parameters is not valid.

See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlanRates

func (*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

func (c *SavingsPlans) DescribeSavingsPlansOfferingRates(input *DescribeSavingsPlansOfferingRatesInput) (*DescribeSavingsPlansOfferingRatesOutput, error)

DescribeSavingsPlansOfferingRates API operation for AWS Savings Plans.

Describes the offering rates for the specified Savings Plans.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Savings Plans's API operation DescribeSavingsPlansOfferingRates for usage and error information.

Returned Error Types:

  • ValidationException One of the input parameters is not valid.

  • InternalServerException An unexpected error occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates

func (*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

func (c *SavingsPlans) DescribeSavingsPlansOfferings(input *DescribeSavingsPlansOfferingsInput) (*DescribeSavingsPlansOfferingsOutput, error)

DescribeSavingsPlansOfferings API operation for AWS Savings Plans.

Describes the offerings for the specified Savings Plans.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Savings Plans's API operation DescribeSavingsPlansOfferings for usage and error information.

Returned Error Types:

  • ValidationException One of the input parameters is not valid.

  • InternalServerException An unexpected error occurred.

See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferings

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

func (c *SavingsPlans) ReturnSavingsPlan(input *ReturnSavingsPlanInput) (*ReturnSavingsPlanOutput, error)

ReturnSavingsPlan API operation for AWS Savings Plans.

Returns the specified Savings Plan.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Savings Plans's API operation ReturnSavingsPlan for usage and error information.

Returned Error Types:

  • ValidationException One of the input parameters is not valid.

  • ResourceNotFoundException The specified resource was not found.

  • InternalServerException An unexpected error occurred.

  • ServiceQuotaExceededException A service quota has been exceeded.

See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ReturnSavingsPlan

func (*SavingsPlans) ReturnSavingsPlanRequest

func (c *SavingsPlans) ReturnSavingsPlanRequest(input *ReturnSavingsPlanInput) (req *request.Request, output *ReturnSavingsPlanOutput)

ReturnSavingsPlanRequest generates a "aws/request.Request" representing the client's request for the ReturnSavingsPlan operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ReturnSavingsPlan for more information on using the ReturnSavingsPlan API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ReturnSavingsPlanRequest method.
req, resp := client.ReturnSavingsPlanRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ReturnSavingsPlan

func (*SavingsPlans) ReturnSavingsPlanWithContext

func (c *SavingsPlans) ReturnSavingsPlanWithContext(ctx aws.Context, input *ReturnSavingsPlanInput, opts ...request.Option) (*ReturnSavingsPlanOutput, error)

ReturnSavingsPlanWithContext is the same as ReturnSavingsPlan with the addition of the ability to pass a context and additional request options.

See ReturnSavingsPlan for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*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

func (s *ServiceQuotaExceededException) Code() string

Code returns the exception type name.

func (*ServiceQuotaExceededException) Error

func (s *ServiceQuotaExceededException) Error() string

func (ServiceQuotaExceededException) GoString

func (s ServiceQuotaExceededException) GoString() string

GoString returns the string representation.

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

func (*ServiceQuotaExceededException) Message

func (s *ServiceQuotaExceededException) Message() string

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

func (s ServiceQuotaExceededException) String() string

String returns the string representation.

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

type TagResourceInput

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