aws-sdk-go: github.com/aws/aws-sdk-go/service/savingsplans Index | Files | Directories

package savingsplans

import "github.com/aws/aws-sdk-go/service/savingsplans"

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

Savings Plans are a pricing model that offer significant savings on AWS usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage, in USD per hour, for a term of 1 or 3 years, and receive a lower price for that usage. For more information, see the AWS Savings Plans User Guide (https://docs.aws.amazon.com/savingsplans/latest/userguide/).

See https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28 for more information on this service.

See savingsplans package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/savingsplans/

Using the Client

To contact AWS Savings Plans with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS Savings Plans client SavingsPlans for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/savingsplans/#New

Index

Package Files

api.go doc.go errors.go service.go

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"
)
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"
)
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"
)
const (
    // SavingsPlanTypeCompute is a SavingsPlanType enum value
    SavingsPlanTypeCompute = "Compute"

    // SavingsPlanTypeEc2instance is a SavingsPlanType enum value
    SavingsPlanTypeEc2instance = "EC2Instance"
)
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

const (
    // SavingsPlanRateUnitHrs is a SavingsPlanRateUnit enum value
    SavingsPlanRateUnitHrs = "Hrs"
)

type CreateSavingsPlanInput Uses

type CreateSavingsPlanInput struct {

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

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

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

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

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

func (CreateSavingsPlanInput) GoString Uses

func (s CreateSavingsPlanInput) GoString() string

GoString returns the string representation

func (*CreateSavingsPlanInput) SetClientToken Uses

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

SetClientToken sets the ClientToken field's value.

func (*CreateSavingsPlanInput) SetCommitment Uses

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

SetCommitment sets the Commitment field's value.

func (*CreateSavingsPlanInput) SetSavingsPlanOfferingId Uses

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

SetSavingsPlanOfferingId sets the SavingsPlanOfferingId field's value.

func (*CreateSavingsPlanInput) SetTags Uses

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

SetTags sets the Tags field's value.

func (*CreateSavingsPlanInput) SetUpfrontPaymentAmount Uses

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

SetUpfrontPaymentAmount sets the UpfrontPaymentAmount field's value.

func (CreateSavingsPlanInput) String Uses

func (s CreateSavingsPlanInput) String() string

String returns the string representation

func (*CreateSavingsPlanInput) Validate Uses

func (s *CreateSavingsPlanInput) Validate() error

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

type CreateSavingsPlanOutput Uses

type CreateSavingsPlanOutput struct {

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

func (CreateSavingsPlanOutput) GoString Uses

func (s CreateSavingsPlanOutput) GoString() string

GoString returns the string representation

func (*CreateSavingsPlanOutput) SetSavingsPlanId Uses

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (CreateSavingsPlanOutput) String Uses

func (s CreateSavingsPlanOutput) String() string

String returns the string representation

type DescribeSavingsPlanRatesInput Uses

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 Uses

func (s DescribeSavingsPlanRatesInput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlanRatesInput) SetFilters Uses

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

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlanRatesInput) SetMaxResults Uses

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlanRatesInput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlanRatesInput) SetSavingsPlanId Uses

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (DescribeSavingsPlanRatesInput) String Uses

func (s DescribeSavingsPlanRatesInput) String() string

String returns the string representation

func (*DescribeSavingsPlanRatesInput) Validate Uses

func (s *DescribeSavingsPlanRatesInput) Validate() error

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

type DescribeSavingsPlanRatesOutput Uses

type DescribeSavingsPlanRatesOutput struct {

    // The token to use to retrieve the next page of results. This value is null
    // when there are no more results to return.
    NextToken *string `locationName:"nextToken" type:"string"`

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

    // Information about the Savings Plans rates.
    SearchResults []*SavingsPlanRate `locationName:"searchResults" type:"list"`
    // contains filtered or unexported fields
}

func (DescribeSavingsPlanRatesOutput) GoString Uses

func (s DescribeSavingsPlanRatesOutput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlanRatesOutput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlanRatesOutput) SetSavingsPlanId Uses

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (*DescribeSavingsPlanRatesOutput) SetSearchResults Uses

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

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlanRatesOutput) String Uses

func (s DescribeSavingsPlanRatesOutput) String() string

String returns the string representation

type DescribeSavingsPlansInput Uses

type DescribeSavingsPlansInput struct {

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

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

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

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

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

    // The states.
    States []*string `locationName:"states" type:"list"`
    // contains filtered or unexported fields
}

func (DescribeSavingsPlansInput) GoString Uses

func (s DescribeSavingsPlansInput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlansInput) SetFilters Uses

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

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansInput) SetMaxResults Uses

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansInput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansInput) SetSavingsPlanArns Uses

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

SetSavingsPlanArns sets the SavingsPlanArns field's value.

func (*DescribeSavingsPlansInput) SetSavingsPlanIds Uses

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

SetSavingsPlanIds sets the SavingsPlanIds field's value.

func (*DescribeSavingsPlansInput) SetStates Uses

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

SetStates sets the States field's value.

func (DescribeSavingsPlansInput) String Uses

func (s DescribeSavingsPlansInput) String() string

String returns the string representation

func (*DescribeSavingsPlansInput) Validate Uses

func (s *DescribeSavingsPlansInput) Validate() error

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

type DescribeSavingsPlansOfferingRatesInput Uses

type DescribeSavingsPlansOfferingRatesInput struct {

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

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

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

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

    // The AWS products.
    Products []*string `locationName:"products" type:"list"`

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

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

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

    // 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 (DescribeSavingsPlansOfferingRatesInput) GoString Uses

func (s DescribeSavingsPlansOfferingRatesInput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlansOfferingRatesInput) SetFilters Uses

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

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetMaxResults Uses

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetOperations Uses

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

SetOperations sets the Operations field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetProducts Uses

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

SetProducts sets the Products field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanOfferingIds Uses

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

SetSavingsPlanOfferingIds sets the SavingsPlanOfferingIds field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanPaymentOptions Uses

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

SetSavingsPlanPaymentOptions sets the SavingsPlanPaymentOptions field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetSavingsPlanTypes Uses

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

SetSavingsPlanTypes sets the SavingsPlanTypes field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetServiceCodes Uses

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

SetServiceCodes sets the ServiceCodes field's value.

func (*DescribeSavingsPlansOfferingRatesInput) SetUsageTypes Uses

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

SetUsageTypes sets the UsageTypes field's value.

func (DescribeSavingsPlansOfferingRatesInput) String Uses

func (s DescribeSavingsPlansOfferingRatesInput) String() string

String returns the string representation

type DescribeSavingsPlansOfferingRatesOutput Uses

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 Uses

func (s DescribeSavingsPlansOfferingRatesOutput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlansOfferingRatesOutput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingRatesOutput) SetSearchResults Uses

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

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlansOfferingRatesOutput) String Uses

func (s DescribeSavingsPlansOfferingRatesOutput) String() string

String returns the string representation

type DescribeSavingsPlansOfferingsInput Uses

type DescribeSavingsPlansOfferingsInput struct {

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

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

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

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

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

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

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

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

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

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

    // 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 Uses

func (s DescribeSavingsPlansOfferingsInput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlansOfferingsInput) SetCurrencies Uses

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

SetCurrencies sets the Currencies field's value.

func (*DescribeSavingsPlansOfferingsInput) SetDescriptions Uses

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

SetDescriptions sets the Descriptions field's value.

func (*DescribeSavingsPlansOfferingsInput) SetDurations Uses

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

SetDurations sets the Durations field's value.

func (*DescribeSavingsPlansOfferingsInput) SetFilters Uses

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

SetFilters sets the Filters field's value.

func (*DescribeSavingsPlansOfferingsInput) SetMaxResults Uses

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

SetMaxResults sets the MaxResults field's value.

func (*DescribeSavingsPlansOfferingsInput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingsInput) SetOfferingIds Uses

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

SetOfferingIds sets the OfferingIds field's value.

func (*DescribeSavingsPlansOfferingsInput) SetOperations Uses

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

SetOperations sets the Operations field's value.

func (*DescribeSavingsPlansOfferingsInput) SetPaymentOptions Uses

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

SetPaymentOptions sets the PaymentOptions field's value.

func (*DescribeSavingsPlansOfferingsInput) SetPlanTypes Uses

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

SetPlanTypes sets the PlanTypes field's value.

func (*DescribeSavingsPlansOfferingsInput) SetProductType Uses

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

SetProductType sets the ProductType field's value.

func (*DescribeSavingsPlansOfferingsInput) SetServiceCodes Uses

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

SetServiceCodes sets the ServiceCodes field's value.

func (*DescribeSavingsPlansOfferingsInput) SetUsageTypes Uses

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

SetUsageTypes sets the UsageTypes field's value.

func (DescribeSavingsPlansOfferingsInput) String Uses

func (s DescribeSavingsPlansOfferingsInput) String() string

String returns the string representation

type DescribeSavingsPlansOfferingsOutput Uses

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 Uses

func (s DescribeSavingsPlansOfferingsOutput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlansOfferingsOutput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOfferingsOutput) SetSearchResults Uses

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

SetSearchResults sets the SearchResults field's value.

func (DescribeSavingsPlansOfferingsOutput) String Uses

func (s DescribeSavingsPlansOfferingsOutput) String() string

String returns the string representation

type DescribeSavingsPlansOutput Uses

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 Uses

func (s DescribeSavingsPlansOutput) GoString() string

GoString returns the string representation

func (*DescribeSavingsPlansOutput) SetNextToken Uses

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

SetNextToken sets the NextToken field's value.

func (*DescribeSavingsPlansOutput) SetSavingsPlans Uses

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

SetSavingsPlans sets the SavingsPlans field's value.

func (DescribeSavingsPlansOutput) String Uses

func (s DescribeSavingsPlansOutput) String() string

String returns the string representation

type ListTagsForResourceInput Uses

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 Uses

func (s ListTagsForResourceInput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceInput) SetResourceArn Uses

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

SetResourceArn sets the ResourceArn field's value.

func (ListTagsForResourceInput) String Uses

func (s ListTagsForResourceInput) String() string

String returns the string representation

func (*ListTagsForResourceInput) Validate Uses

func (s *ListTagsForResourceInput) Validate() error

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

type ListTagsForResourceOutput Uses

type ListTagsForResourceOutput struct {

    // Information about the tags.
    Tags map[string]*string `locationName:"tags" type:"map"`
    // contains filtered or unexported fields
}

func (ListTagsForResourceOutput) GoString Uses

func (s ListTagsForResourceOutput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceOutput) SetTags Uses

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

SetTags sets the Tags field's value.

func (ListTagsForResourceOutput) String Uses

func (s ListTagsForResourceOutput) String() string

String returns the string representation

type ParentSavingsPlanOffering Uses

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 Uses

func (s ParentSavingsPlanOffering) GoString() string

GoString returns the string representation

func (*ParentSavingsPlanOffering) SetCurrency Uses

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

SetCurrency sets the Currency field's value.

func (*ParentSavingsPlanOffering) SetDurationSeconds Uses

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

SetDurationSeconds sets the DurationSeconds field's value.

func (*ParentSavingsPlanOffering) SetOfferingId Uses

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

SetOfferingId sets the OfferingId field's value.

func (*ParentSavingsPlanOffering) SetPaymentOption Uses

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

SetPaymentOption sets the PaymentOption field's value.

func (*ParentSavingsPlanOffering) SetPlanDescription Uses

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

SetPlanDescription sets the PlanDescription field's value.

func (*ParentSavingsPlanOffering) SetPlanType Uses

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

SetPlanType sets the PlanType field's value.

func (ParentSavingsPlanOffering) String Uses

func (s ParentSavingsPlanOffering) String() string

String returns the string representation

type SavingsPlan Uses

type SavingsPlan struct {

    // The hourly commitment, in USD.
    Commitment *string `locationName:"commitment" type:"string"`

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

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

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

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

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

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

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

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

    // The AWS Region.
    Region *string `locationName:"region" type:"string"`

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

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

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

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

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

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

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

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

Information about a Savings Plan.

func (SavingsPlan) GoString Uses

func (s SavingsPlan) GoString() string

GoString returns the string representation

func (*SavingsPlan) SetCommitment Uses

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

SetCommitment sets the Commitment field's value.

func (*SavingsPlan) SetCurrency Uses

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

SetCurrency sets the Currency field's value.

func (*SavingsPlan) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*SavingsPlan) SetEc2InstanceFamily Uses

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

SetEc2InstanceFamily sets the Ec2InstanceFamily field's value.

func (*SavingsPlan) SetEnd Uses

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

SetEnd sets the End field's value.

func (*SavingsPlan) SetOfferingId Uses

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

SetOfferingId sets the OfferingId field's value.

func (*SavingsPlan) SetPaymentOption Uses

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

SetPaymentOption sets the PaymentOption field's value.

func (*SavingsPlan) SetProductTypes Uses

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

SetProductTypes sets the ProductTypes field's value.

func (*SavingsPlan) SetRecurringPaymentAmount Uses

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

SetRecurringPaymentAmount sets the RecurringPaymentAmount field's value.

func (*SavingsPlan) SetRegion Uses

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

SetRegion sets the Region field's value.

func (*SavingsPlan) SetSavingsPlanArn Uses

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

SetSavingsPlanArn sets the SavingsPlanArn field's value.

func (*SavingsPlan) SetSavingsPlanId Uses

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

SetSavingsPlanId sets the SavingsPlanId field's value.

func (*SavingsPlan) SetSavingsPlanType Uses

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

SetSavingsPlanType sets the SavingsPlanType field's value.

func (*SavingsPlan) SetStart Uses

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

SetStart sets the Start field's value.

func (*SavingsPlan) SetState Uses

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

SetState sets the State field's value.

func (*SavingsPlan) SetTags Uses

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

SetTags sets the Tags field's value.

func (*SavingsPlan) SetTermDurationInSeconds Uses

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

SetTermDurationInSeconds sets the TermDurationInSeconds field's value.

func (*SavingsPlan) SetUpfrontPaymentAmount Uses

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

SetUpfrontPaymentAmount sets the UpfrontPaymentAmount field's value.

func (SavingsPlan) String Uses

func (s SavingsPlan) String() string

String returns the string representation

type SavingsPlanFilter Uses

type SavingsPlanFilter struct {

    // The filter name.
    Name *string `locationName:"name" type:"string" enum:"SavingsPlansFilterName"`

    // The filter value.
    Values []*string `locationName:"values" type:"list"`
    // contains filtered or unexported fields
}

Information about a filter.

func (SavingsPlanFilter) GoString Uses

func (s SavingsPlanFilter) GoString() string

GoString returns the string representation

func (*SavingsPlanFilter) SetName Uses

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

SetName sets the Name field's value.

func (*SavingsPlanFilter) SetValues Uses

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

SetValues sets the Values field's value.

func (SavingsPlanFilter) String Uses

func (s SavingsPlanFilter) String() string

String returns the string representation

type SavingsPlanOffering Uses

type SavingsPlanOffering struct {

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

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

    // The duration, in seconds.
    DurationSeconds *int64 `locationName:"durationSeconds" type:"long"`

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

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

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

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

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

    // 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 Uses

func (s SavingsPlanOffering) GoString() string

GoString returns the string representation

func (*SavingsPlanOffering) SetCurrency Uses

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

SetCurrency sets the Currency field's value.

func (*SavingsPlanOffering) SetDescription Uses

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

SetDescription sets the Description field's value.

func (*SavingsPlanOffering) SetDurationSeconds Uses

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

SetDurationSeconds sets the DurationSeconds field's value.

func (*SavingsPlanOffering) SetOfferingId Uses

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

SetOfferingId sets the OfferingId field's value.

func (*SavingsPlanOffering) SetOperation Uses

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

SetOperation sets the Operation field's value.

func (*SavingsPlanOffering) SetPaymentOption Uses

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

SetPaymentOption sets the PaymentOption field's value.

func (*SavingsPlanOffering) SetPlanType Uses

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

SetPlanType sets the PlanType field's value.

func (*SavingsPlanOffering) SetProductTypes Uses

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

SetProductTypes sets the ProductTypes field's value.

func (*SavingsPlanOffering) SetProperties Uses

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

SetProperties sets the Properties field's value.

func (*SavingsPlanOffering) SetServiceCode Uses

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

SetServiceCode sets the ServiceCode field's value.

func (*SavingsPlanOffering) SetUsageType Uses

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

SetUsageType sets the UsageType field's value.

func (SavingsPlanOffering) String Uses

func (s SavingsPlanOffering) String() string

String returns the string representation

type SavingsPlanOfferingFilterElement Uses

type SavingsPlanOfferingFilterElement struct {

    // The filter name.
    Name *string `locationName:"name" type:"string" enum:"SavingsPlanOfferingFilterAttribute"`

    // The filter values.
    Values []*string `locationName:"values" type:"list"`
    // contains filtered or unexported fields
}

Information about a filter.

func (SavingsPlanOfferingFilterElement) GoString Uses

func (s SavingsPlanOfferingFilterElement) GoString() string

GoString returns the string representation

func (*SavingsPlanOfferingFilterElement) SetName Uses

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

SetName sets the Name field's value.

func (*SavingsPlanOfferingFilterElement) SetValues Uses

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

SetValues sets the Values field's value.

func (SavingsPlanOfferingFilterElement) String Uses

func (s SavingsPlanOfferingFilterElement) String() string

String returns the string representation

type SavingsPlanOfferingProperty Uses

type SavingsPlanOfferingProperty struct {

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

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

Information about a property.

func (SavingsPlanOfferingProperty) GoString Uses

func (s SavingsPlanOfferingProperty) GoString() string

GoString returns the string representation

func (*SavingsPlanOfferingProperty) SetName Uses

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

SetName sets the Name field's value.

func (*SavingsPlanOfferingProperty) SetValue Uses

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

SetValue sets the Value field's value.

func (SavingsPlanOfferingProperty) String Uses

func (s SavingsPlanOfferingProperty) String() string

String returns the string representation

type SavingsPlanOfferingRate Uses

type SavingsPlanOfferingRate struct {

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

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

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

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

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

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

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

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

Information about a Savings Plan offering rate.

func (SavingsPlanOfferingRate) GoString Uses

func (s SavingsPlanOfferingRate) GoString() string

GoString returns the string representation

func (*SavingsPlanOfferingRate) SetOperation Uses

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

SetOperation sets the Operation field's value.

func (*SavingsPlanOfferingRate) SetProductType Uses

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

SetProductType sets the ProductType field's value.

func (*SavingsPlanOfferingRate) SetProperties Uses

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

SetProperties sets the Properties field's value.

func (*SavingsPlanOfferingRate) SetRate Uses

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

SetRate sets the Rate field's value.

func (*SavingsPlanOfferingRate) SetSavingsPlanOffering Uses

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

SetSavingsPlanOffering sets the SavingsPlanOffering field's value.

func (*SavingsPlanOfferingRate) SetServiceCode Uses

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

SetServiceCode sets the ServiceCode field's value.

func (*SavingsPlanOfferingRate) SetUnit Uses

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

SetUnit sets the Unit field's value.

func (*SavingsPlanOfferingRate) SetUsageType Uses

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

SetUsageType sets the UsageType field's value.

func (SavingsPlanOfferingRate) String Uses

func (s SavingsPlanOfferingRate) String() string

String returns the string representation

type SavingsPlanOfferingRateFilterElement Uses

type SavingsPlanOfferingRateFilterElement struct {

    // The filter name.
    Name *string `locationName:"name" type:"string" enum:"SavingsPlanRateFilterAttribute"`

    // The filter values.
    Values []*string `locationName:"values" type:"list"`
    // contains filtered or unexported fields
}

Information about a filter.

func (SavingsPlanOfferingRateFilterElement) GoString Uses

func (s SavingsPlanOfferingRateFilterElement) GoString() string

GoString returns the string representation

func (*SavingsPlanOfferingRateFilterElement) SetName Uses

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

SetName sets the Name field's value.

func (*SavingsPlanOfferingRateFilterElement) SetValues Uses

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

SetValues sets the Values field's value.

func (SavingsPlanOfferingRateFilterElement) String Uses

func (s SavingsPlanOfferingRateFilterElement) String() string

String returns the string representation

type SavingsPlanOfferingRateProperty Uses

type SavingsPlanOfferingRateProperty struct {

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

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

Information about a property.

func (SavingsPlanOfferingRateProperty) GoString Uses

func (s SavingsPlanOfferingRateProperty) GoString() string

GoString returns the string representation

func (*SavingsPlanOfferingRateProperty) SetName Uses

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

SetName sets the Name field's value.

func (*SavingsPlanOfferingRateProperty) SetValue Uses

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

SetValue sets the Value field's value.

func (SavingsPlanOfferingRateProperty) String Uses

func (s SavingsPlanOfferingRateProperty) String() string

String returns the string representation

type SavingsPlanRate Uses

type SavingsPlanRate struct {

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

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

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

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

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

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

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

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

Information about a Savings Plan rate.

func (SavingsPlanRate) GoString Uses

func (s SavingsPlanRate) GoString() string

GoString returns the string representation

func (*SavingsPlanRate) SetCurrency Uses

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

SetCurrency sets the Currency field's value.

func (*SavingsPlanRate) SetOperation Uses

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

SetOperation sets the Operation field's value.

func (*SavingsPlanRate) SetProductType Uses

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

SetProductType sets the ProductType field's value.

func (*SavingsPlanRate) SetProperties Uses

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

SetProperties sets the Properties field's value.

func (*SavingsPlanRate) SetRate Uses

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

SetRate sets the Rate field's value.

func (*SavingsPlanRate) SetServiceCode Uses

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

SetServiceCode sets the ServiceCode field's value.

func (*SavingsPlanRate) SetUnit Uses

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

SetUnit sets the Unit field's value.

func (*SavingsPlanRate) SetUsageType Uses

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

SetUsageType sets the UsageType field's value.

func (SavingsPlanRate) String Uses

func (s SavingsPlanRate) String() string

String returns the string representation

type SavingsPlanRateFilter Uses

type SavingsPlanRateFilter struct {

    // The filter name.
    Name *string `locationName:"name" type:"string" enum:"SavingsPlanRateFilterName"`

    // The filter values.
    Values []*string `locationName:"values" type:"list"`
    // contains filtered or unexported fields
}

Information about a filter.

func (SavingsPlanRateFilter) GoString Uses

func (s SavingsPlanRateFilter) GoString() string

GoString returns the string representation

func (*SavingsPlanRateFilter) SetName Uses

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

SetName sets the Name field's value.

func (*SavingsPlanRateFilter) SetValues Uses

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

SetValues sets the Values field's value.

func (SavingsPlanRateFilter) String Uses

func (s SavingsPlanRateFilter) String() string

String returns the string representation

type SavingsPlanRateProperty Uses

type SavingsPlanRateProperty struct {

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

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

Information about a property.

func (SavingsPlanRateProperty) GoString Uses

func (s SavingsPlanRateProperty) GoString() string

GoString returns the string representation

func (*SavingsPlanRateProperty) SetName Uses

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

SetName sets the Name field's value.

func (*SavingsPlanRateProperty) SetValue Uses

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

SetValue sets the Value field's value.

func (SavingsPlanRateProperty) String Uses

func (s SavingsPlanRateProperty) String() string

String returns the string representation

type SavingsPlans Uses

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 Uses

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 Uses

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 Codes:

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified resource was not found.

* ErrCodeValidationException "ValidationException"
One of the input parameters is not valid.

* ErrCodeInternalServerException "InternalServerException"
An unexpected error occurred.

* ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException"
A service quota has been exceeded.

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

func (*SavingsPlans) CreateSavingsPlanRequest Uses

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 Uses

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) DescribeSavingsPlanRates Uses

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

DescribeSavingsPlanRates API operation for AWS Savings Plans.

Describes the specified Savings Plans rates.

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

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

Returned Error Codes:

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified resource was not found.

* ErrCodeValidationException "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 Uses

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 Uses

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 Uses

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 Codes:

* ErrCodeInternalServerException "InternalServerException"
An unexpected error occurred.

* ErrCodeValidationException "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 Uses

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

DescribeSavingsPlansOfferingRates API operation for AWS Savings Plans.

Describes the specified Savings Plans offering rates.

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

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

Returned Error Codes:

* ErrCodeValidationException "ValidationException"
One of the input parameters is not valid.

* ErrCodeInternalServerException "InternalServerException"
An unexpected error occurred.

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

func (*SavingsPlans) DescribeSavingsPlansOfferingRatesRequest Uses

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 Uses

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 Uses

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

DescribeSavingsPlansOfferings API operation for AWS Savings Plans.

Describes the specified Savings Plans offerings.

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

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

Returned Error Codes:

* ErrCodeValidationException "ValidationException"
One of the input parameters is not valid.

* ErrCodeInternalServerException "InternalServerException"
An unexpected error occurred.

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

func (*SavingsPlans) DescribeSavingsPlansOfferingsRequest Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Codes:

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified resource was not found.

* ErrCodeValidationException "ValidationException"
One of the input parameters is not valid.

* ErrCodeInternalServerException "InternalServerException"
An unexpected error occurred.

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

func (*SavingsPlans) ListTagsForResourceRequest Uses

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 Uses

func (c *SavingsPlans) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

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

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

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

func (*SavingsPlans) TagResource Uses

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 Codes:

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified resource was not found.

* ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException"
A service quota has been exceeded.

* ErrCodeValidationException "ValidationException"
One of the input parameters is not valid.

* ErrCodeInternalServerException "InternalServerException"
An unexpected error occurred.

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

func (*SavingsPlans) TagResourceRequest Uses

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 Uses

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 Uses

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 Codes:

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The specified resource was not found.

* ErrCodeValidationException "ValidationException"
One of the input parameters is not valid.

* ErrCodeInternalServerException "InternalServerException"
An unexpected error occurred.

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

func (*SavingsPlans) UntagResourceRequest Uses

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 Uses

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 TagResourceInput Uses

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 Uses

func (s TagResourceInput) GoString() string

GoString returns the string representation

func (*TagResourceInput) SetResourceArn Uses

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

SetResourceArn sets the ResourceArn field's value.

func (*TagResourceInput) SetTags Uses

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

SetTags sets the Tags field's value.

func (TagResourceInput) String Uses

func (s TagResourceInput) String() string

String returns the string representation

func (*TagResourceInput) Validate Uses

func (s *TagResourceInput) Validate() error

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

type TagResourceOutput Uses

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

func (TagResourceOutput) GoString Uses

func (s TagResourceOutput) GoString() string

GoString returns the string representation

func (TagResourceOutput) String Uses

func (s TagResourceOutput) String() string

String returns the string representation

type UntagResourceInput Uses

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 Uses

func (s UntagResourceInput) GoString() string

GoString returns the string representation

func (*UntagResourceInput) SetResourceArn Uses

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

SetResourceArn sets the ResourceArn field's value.

func (*UntagResourceInput) SetTagKeys Uses

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

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String Uses

func (s UntagResourceInput) String() string

String returns the string representation

func (*UntagResourceInput) Validate Uses

func (s *UntagResourceInput) Validate() error

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

type UntagResourceOutput Uses

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

func (UntagResourceOutput) GoString Uses

func (s UntagResourceOutput) GoString() string

GoString returns the string representation

func (UntagResourceOutput) String Uses

func (s UntagResourceOutput) String() string

String returns the string representation

Directories

PathSynopsis
savingsplansifacePackage savingsplansiface provides an interface to enable mocking the AWS Savings Plans service client for testing your code.

Package savingsplans imports 8 packages (graph) and is imported by 3 packages. Updated 2019-12-11. Refresh now. Tools for package owners.