aws

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_aws_account_proto protoreflect.FileDescriptor
View Source
var File_api_aws_adjustment_proto protoreflect.FileDescriptor
View Source
var File_api_aws_calculatorconfig_proto protoreflect.FileDescriptor
View Source
var File_api_aws_cost_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {

	// The AWS account id.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The account name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The attributes (key/value pair) of the account. If hierarchy is supported, it will be
	// separated by '/', such as 'metakey/subkey=value'. Supported attributes include 'createTime'.
	// If the account is a master (or payer) account, additional attributes include 'bucketName',
	// 'lastModified' (last timestamp AWS updated CUR), 'prefix', 'reportName', 'roleArn', and
	// 'lastImported' (last timestamp CUR is imported to Alphaus).
	Metadata map[string]string `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

func (*Account) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetMetadata

func (x *Account) GetMetadata() map[string]string

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

func (x *Account) ProtoReflect() protoreflect.Message

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type Adjustment added in v0.9.0

type Adjustment struct {
	Account        string  `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	GroupId        string  `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"`
	Date           string  `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	Type           string  `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	ProductCode    string  `protobuf:"bytes,5,opt,name=productCode,proto3" json:"productCode,omitempty"`
	Description    string  `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Cost           float64 `protobuf:"fixed64,7,opt,name=cost,proto3" json:"cost,omitempty"`
	BaseCurrency   string  `protobuf:"bytes,8,opt,name=baseCurrency,proto3" json:"baseCurrency,omitempty"`
	ExchangeRate   float64 `protobuf:"fixed64,9,opt,name=exchangeRate,proto3" json:"exchangeRate,omitempty"`
	TargetCost     float64 `protobuf:"fixed64,10,opt,name=targetCost,proto3" json:"targetCost,omitempty"`
	TargetCurrency string  `protobuf:"bytes,11,opt,name=targetCurrency,proto3" json:"targetCurrency,omitempty"`
	// contains filtered or unexported fields
}

func (*Adjustment) Descriptor deprecated added in v0.9.0

func (*Adjustment) Descriptor() ([]byte, []int)

Deprecated: Use Adjustment.ProtoReflect.Descriptor instead.

func (*Adjustment) GetAccount added in v0.9.0

func (x *Adjustment) GetAccount() string

func (*Adjustment) GetBaseCurrency added in v0.32.9

func (x *Adjustment) GetBaseCurrency() string

func (*Adjustment) GetCost added in v0.9.0

func (x *Adjustment) GetCost() float64

func (*Adjustment) GetDate added in v0.9.0

func (x *Adjustment) GetDate() string

func (*Adjustment) GetDescription added in v0.9.0

func (x *Adjustment) GetDescription() string

func (*Adjustment) GetExchangeRate added in v0.32.9

func (x *Adjustment) GetExchangeRate() float64

func (*Adjustment) GetGroupId added in v0.35.27

func (x *Adjustment) GetGroupId() string

func (*Adjustment) GetProductCode added in v0.9.0

func (x *Adjustment) GetProductCode() string

func (*Adjustment) GetTargetCost added in v0.32.9

func (x *Adjustment) GetTargetCost() float64

func (*Adjustment) GetTargetCurrency added in v0.32.9

func (x *Adjustment) GetTargetCurrency() string

func (*Adjustment) GetType added in v0.9.0

func (x *Adjustment) GetType() string

func (*Adjustment) ProtoMessage added in v0.9.0

func (*Adjustment) ProtoMessage()

func (*Adjustment) ProtoReflect added in v0.9.0

func (x *Adjustment) ProtoReflect() protoreflect.Message

func (*Adjustment) Reset added in v0.9.0

func (x *Adjustment) Reset()

func (*Adjustment) String added in v0.9.0

func (x *Adjustment) String() string

type AdjustmentsTypeList added in v0.35.8

type AdjustmentsTypeList struct {
	Types []string `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*AdjustmentsTypeList) Descriptor deprecated added in v0.35.8

func (*AdjustmentsTypeList) Descriptor() ([]byte, []int)

Deprecated: Use AdjustmentsTypeList.ProtoReflect.Descriptor instead.

func (*AdjustmentsTypeList) GetTypes added in v0.35.8

func (x *AdjustmentsTypeList) GetTypes() []string

func (*AdjustmentsTypeList) ProtoMessage added in v0.35.8

func (*AdjustmentsTypeList) ProtoMessage()

func (*AdjustmentsTypeList) ProtoReflect added in v0.35.8

func (x *AdjustmentsTypeList) ProtoReflect() protoreflect.Message

func (*AdjustmentsTypeList) Reset added in v0.35.8

func (x *AdjustmentsTypeList) Reset()

func (*AdjustmentsTypeList) String added in v0.35.8

func (x *AdjustmentsTypeList) String() string

type CalculatorConfig added in v0.33.2

type CalculatorConfig struct {

	// CUR lineitem types included in Ripple's 'Adjusting Entries'.
	AdjustmentsTypeList *AdjustmentsTypeList `protobuf:"bytes,1,opt,name=adjustmentsTypeList,proto3" json:"adjustmentsTypeList,omitempty"`
	// List of services that are of type 'Usage' in CUR that are excluded,
	// optionally converted to Adjustments.
	ExcludedServicesFromUsage []*ExcludedServiceFromUsage `protobuf:"bytes,2,rep,name=excludedServicesFromUsage,proto3" json:"excludedServicesFromUsage,omitempty"`
	// contains filtered or unexported fields
}

AWS's calculation engine configuration(s).

func (*CalculatorConfig) Descriptor deprecated added in v0.33.2

func (*CalculatorConfig) Descriptor() ([]byte, []int)

Deprecated: Use CalculatorConfig.ProtoReflect.Descriptor instead.

func (*CalculatorConfig) GetAdjustmentsTypeList added in v0.35.8

func (x *CalculatorConfig) GetAdjustmentsTypeList() *AdjustmentsTypeList

func (*CalculatorConfig) GetExcludedServicesFromUsage added in v0.35.8

func (x *CalculatorConfig) GetExcludedServicesFromUsage() []*ExcludedServiceFromUsage

func (*CalculatorConfig) ProtoMessage added in v0.33.2

func (*CalculatorConfig) ProtoMessage()

func (*CalculatorConfig) ProtoReflect added in v0.33.2

func (x *CalculatorConfig) ProtoReflect() protoreflect.Message

func (*CalculatorConfig) Reset added in v0.33.2

func (x *CalculatorConfig) Reset()

func (*CalculatorConfig) String added in v0.33.2

func (x *CalculatorConfig) String() string

type Cost added in v0.9.0

type Cost struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// The group id the account is associated with during the query.
	GroupId string `protobuf:"bytes,2,opt,name=groupId,proto3" json:"groupId,omitempty"`
	Type    string `protobuf:"bytes,29,opt,name=type,proto3" json:"type,omitempty"`
	// For daily data, format is yyyy-mm-dd; for monthly, yyyy-mm.
	Date         string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"`
	ProductCode  string `protobuf:"bytes,4,opt,name=productCode,proto3" json:"productCode,omitempty"`
	ServiceCode  string `protobuf:"bytes,5,opt,name=serviceCode,proto3" json:"serviceCode,omitempty"`
	Region       string `protobuf:"bytes,6,opt,name=region,proto3" json:"region,omitempty"`
	Zone         string `protobuf:"bytes,7,opt,name=zone,proto3" json:"zone,omitempty"`
	UsageType    string `protobuf:"bytes,8,opt,name=usageType,proto3" json:"usageType,omitempty"`
	InstanceType string `protobuf:"bytes,9,opt,name=instanceType,proto3" json:"instanceType,omitempty"`
	Operation    string `protobuf:"bytes,10,opt,name=operation,proto3" json:"operation,omitempty"`
	InvoiceId    string `protobuf:"bytes,11,opt,name=invoiceId,proto3" json:"invoiceId,omitempty"`
	Description  string `protobuf:"bytes,12,opt,name=description,proto3" json:"description,omitempty"`
	// At the moment, this is not yet supported, always empty.
	ResourceId     string            `protobuf:"bytes,13,opt,name=resourceId,proto3" json:"resourceId,omitempty"`
	Tags           map[string]string `` /* 150-byte string literal not displayed */
	CostCategories map[string]string `` /* 170-byte string literal not displayed */
	// Only set when all columns are specified. Any type of grouping will set
	// this value to zero.
	Usage float64 `protobuf:"fixed64,16,opt,name=usage,proto3" json:"usage,omitempty"`
	// The true cost (calculated) for this lineitem.
	Cost float64 `protobuf:"fixed64,17,opt,name=cost,proto3" json:"cost,omitempty"`
	// The unblended cost as reflected in the CUR for this lineitem.
	UnblendedCost float64 `protobuf:"fixed64,27,opt,name=unblendedCost,proto3" json:"unblendedCost,omitempty"`
	// The base currency for cost, unblendedCost, effectiveCost, amortizedCost.
	// Always set to USD, CUR's default currency.
	BaseCurrency string `protobuf:"bytes,18,opt,name=baseCurrency,proto3" json:"baseCurrency,omitempty"`
	// The exchange rate used to convert baseCurrency to targetCurrency.
	ExchangeRate float64 `protobuf:"fixed64,19,opt,name=exchangeRate,proto3" json:"exchangeRate,omitempty"`
	// Converted cost.
	TargetCost float64 `protobuf:"fixed64,20,opt,name=targetCost,proto3" json:"targetCost,omitempty"`
	// Converted unblendedCost.
	TargetUnblendedCost float64 `protobuf:"fixed64,28,opt,name=targetUnblendedCost,proto3" json:"targetUnblendedCost,omitempty"`
	// The currency set by `toCurrency`.
	TargetCurrency string  `protobuf:"bytes,21,opt,name=targetCurrency,proto3" json:"targetCurrency,omitempty"`
	EffectiveCost  float64 `protobuf:"fixed64,23,opt,name=effectiveCost,proto3" json:"effectiveCost,omitempty"`
	// Converted effectiveCost.
	TargetEffectiveCost float64 `protobuf:"fixed64,24,opt,name=targetEffectiveCost,proto3" json:"targetEffectiveCost,omitempty"`
	AmortizedCost       float64 `protobuf:"fixed64,25,opt,name=amortizedCost,proto3" json:"amortizedCost,omitempty"`
	// Converted amortizedCost.
	TargetAmortizedCost float64 `protobuf:"fixed64,26,opt,name=targetAmortizedCost,proto3" json:"targetAmortizedCost,omitempty"`
	TagId               string  `protobuf:"bytes,22,opt,name=tagId,proto3" json:"tagId,omitempty"`
	// contains filtered or unexported fields
}

func (*Cost) Descriptor deprecated added in v0.9.0

func (*Cost) Descriptor() ([]byte, []int)

Deprecated: Use Cost.ProtoReflect.Descriptor instead.

func (*Cost) GetAccount added in v0.9.0

func (x *Cost) GetAccount() string

func (*Cost) GetAmortizedCost added in v0.35.6

func (x *Cost) GetAmortizedCost() float64

func (*Cost) GetBaseCurrency added in v0.32.4

func (x *Cost) GetBaseCurrency() string

func (*Cost) GetCost added in v0.9.0

func (x *Cost) GetCost() float64

func (*Cost) GetCostCategories added in v0.9.0

func (x *Cost) GetCostCategories() map[string]string

func (*Cost) GetDate added in v0.9.0

func (x *Cost) GetDate() string

func (*Cost) GetDescription added in v0.9.0

func (x *Cost) GetDescription() string

func (*Cost) GetEffectiveCost added in v0.35.6

func (x *Cost) GetEffectiveCost() float64

func (*Cost) GetExchangeRate added in v0.32.5

func (x *Cost) GetExchangeRate() float64

func (*Cost) GetGroupId added in v0.35.26

func (x *Cost) GetGroupId() string

func (*Cost) GetInstanceType added in v0.9.0

func (x *Cost) GetInstanceType() string

func (*Cost) GetInvoiceId added in v0.9.0

func (x *Cost) GetInvoiceId() string

func (*Cost) GetOperation added in v0.9.0

func (x *Cost) GetOperation() string

func (*Cost) GetProductCode added in v0.9.0

func (x *Cost) GetProductCode() string

func (*Cost) GetRegion added in v0.9.0

func (x *Cost) GetRegion() string

func (*Cost) GetResourceId added in v0.10.1

func (x *Cost) GetResourceId() string

func (*Cost) GetServiceCode added in v0.9.0

func (x *Cost) GetServiceCode() string

func (*Cost) GetTagId added in v0.10.1

func (x *Cost) GetTagId() string

func (*Cost) GetTags added in v0.9.0

func (x *Cost) GetTags() map[string]string

func (*Cost) GetTargetAmortizedCost added in v0.35.6

func (x *Cost) GetTargetAmortizedCost() float64

func (*Cost) GetTargetCost added in v0.32.4

func (x *Cost) GetTargetCost() float64

func (*Cost) GetTargetCurrency added in v0.32.4

func (x *Cost) GetTargetCurrency() string

func (*Cost) GetTargetEffectiveCost added in v0.35.6

func (x *Cost) GetTargetEffectiveCost() float64

func (*Cost) GetTargetUnblendedCost added in v0.35.26

func (x *Cost) GetTargetUnblendedCost() float64

func (*Cost) GetType added in v0.37.0

func (x *Cost) GetType() string

func (*Cost) GetUnblendedCost added in v0.35.26

func (x *Cost) GetUnblendedCost() float64

func (*Cost) GetUsage added in v0.9.0

func (x *Cost) GetUsage() float64

func (*Cost) GetUsageType added in v0.9.0

func (x *Cost) GetUsageType() string

func (*Cost) GetZone added in v0.9.0

func (x *Cost) GetZone() string

func (*Cost) ProtoMessage added in v0.9.0

func (*Cost) ProtoMessage()

func (*Cost) ProtoReflect added in v0.9.0

func (x *Cost) ProtoReflect() protoreflect.Message

func (*Cost) Reset added in v0.9.0

func (x *Cost) Reset()

func (*Cost) String added in v0.9.0

func (x *Cost) String() string

type ExcludedServiceFromUsage added in v0.35.8

type ExcludedServiceFromUsage struct {

	// The management account (formerly master account) the `productCode` belongs to.
	ManagementAccount string `protobuf:"bytes,1,opt,name=managementAccount,proto3" json:"managementAccount,omitempty"`
	// The excluded product code.
	ProductCode string `protobuf:"bytes,2,opt,name=productCode,proto3" json:"productCode,omitempty"`
	// If the product code is converted to Adjustments or not.
	ConvertedToAdjustments bool `protobuf:"varint,3,opt,name=convertedToAdjustments,proto3" json:"convertedToAdjustments,omitempty"`
	// contains filtered or unexported fields
}

func (*ExcludedServiceFromUsage) Descriptor deprecated added in v0.35.8

func (*ExcludedServiceFromUsage) Descriptor() ([]byte, []int)

Deprecated: Use ExcludedServiceFromUsage.ProtoReflect.Descriptor instead.

func (*ExcludedServiceFromUsage) GetConvertedToAdjustments added in v0.35.8

func (x *ExcludedServiceFromUsage) GetConvertedToAdjustments() bool

func (*ExcludedServiceFromUsage) GetManagementAccount added in v0.35.8

func (x *ExcludedServiceFromUsage) GetManagementAccount() string

func (*ExcludedServiceFromUsage) GetProductCode added in v0.35.8

func (x *ExcludedServiceFromUsage) GetProductCode() string

func (*ExcludedServiceFromUsage) ProtoMessage added in v0.35.8

func (*ExcludedServiceFromUsage) ProtoMessage()

func (*ExcludedServiceFromUsage) ProtoReflect added in v0.35.8

func (x *ExcludedServiceFromUsage) ProtoReflect() protoreflect.Message

func (*ExcludedServiceFromUsage) Reset added in v0.35.8

func (x *ExcludedServiceFromUsage) Reset()

func (*ExcludedServiceFromUsage) String added in v0.35.8

func (x *ExcludedServiceFromUsage) String() string

Jump to

Keyboard shortcuts

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