Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnDemandTerm ¶
type OnDemandTerm struct { SKU string EffectiveDate string OfferTermCode string //TermAttributes OnDemandTermAttributes PriceDimensions []PriceDimension }
type PriceDimension ¶
type PriceDimension map[string]PriceDimensionItem
type PriceDimensionItem ¶
type PricePerUnit ¶
type PricingDocument ¶
type PricingDocument struct { PublicationDate string SKU string ServiceCode string Version string Product Product Terms struct { OnDemand map[string]OnDemandTerm Reserved map[string]ReservedTerm } }
PricingDocument is a structure for each of the returned slice items representing each resulting product and it's accompanying pricing detail
func GetTypedPricingData ¶
func GetTypedPricingData(getProductsOutput pricing.GetProductsOutput) (pricingData []PricingDocument, err error)
GetTypedPricingData takes the raw output from the AWS API and returns typed data in structs
type Product ¶
type Product struct { ProductFamily string SKU string Attributes struct { NetworkPerformance string VCPU string GPU string CapacityStatus string OperatingSystem string PhysicalProcessor string PhysicalCores string ECU string PreInstalledSw string ProcessorArchitecture string InstanceCapacity10xlarge string InstanceCapacity16xlarge string InstanceCapacity2xlarge string InstanceCapacityXlarge string InstanceCapacityLarge string InstanceCapacity4xlarge string InstanceCapacity8xlarge string EnhancedNetworkingSupported string Storage string ClockSpeed string Tenancy string LicenseModel string ServiceCode string CurrentGeneration string DedicatedEbsThroughput string ServiceName string InstanceType string NormalizationSizeFactor string ProcessorFeatures string IntelAvxAvailable string IntelAvx2Available string IntelTurboAvailable string Operation string Memory string LocationType string InstanceFamily string UsageType string Location string } }
type ReservedTerm ¶
Click to show internal directories.
Click to hide internal directories.