Documentation
¶
Overview ¶
Package aws contains the implementation of stack for Amazon
Index ¶
- Variables
- func IsOperation(op interface{}, name string, fieldType reflect.Type) bool
- func New(auth stacks.AuthenticationOptions, localCfg stacks.AWSConfiguration, ...) (*stack, error)
- func NullStack() *stack
- type Attributes
- type Card
- type IPInSubnet
- type InstanceType
- type OnDemand
- type OpContext
- type Price
- type PriceDimension
- type PriceDimensions
- type Product
- type Reserved
- type Result
- type TermAttributes
- type Terms
Constants ¶
This section is empty.
Variables ¶
View Source
var InstanceTypes = map[string]*InstanceType{}/* 196 elements not displayed */
InstanceTypes is a map of EC2 resources.
Functions ¶
func IsOperation ¶
IsOperation checks if 'op' interface has a field with 'name' of type 'fieldType'
func New ¶
func New(auth stacks.AuthenticationOptions, localCfg stacks.AWSConfiguration, cfg stacks.ConfigurationOptions) (*stack, error)
New creates and initializes an AWS stack
Types ¶
type Attributes ¶
type Attributes struct {
ClockSpeed string `json:"clockSpeed,omitempty"`
CurrentGeneration string `json:"currentGeneration,omitempty"`
DedicatedEbsThroughput string `json:"dedicatedEbsThroughput,omitempty"`
Ecu string `json:"ecu,omitempty"`
Gpu string `json:"gpu,omitempty"`
EnhancedNetworkingSupported string `json:"enhancedNetworkingSupported,omitempty"`
InstanceFamily string `json:"instanceFamily,omitempty"`
InstanceType string `json:"instanceType,omitempty"`
LicenseModel string `json:"licenseModel,omitempty"`
Location string `json:"location,omitempty"`
LocationType string `json:"locationType,omitempty"`
Memory string `json:"memory,omitempty"`
NetworkPerformance string `json:"networkPerformance,omitempty"`
NormalizationSizeFactor string `json:"normalizationSizeFactor,omitempty"`
OperatingSystem string `json:"operatingSystem,omitempty"`
Operation string `json:"operation,omitempty"`
PhysicalProcessor string `json:"physicalProcessor,omitempty"`
PreInstalledSw string `json:"preInstalledSw,omitempty"`
ProcessorArchitecture string `json:"processorArchitecture,omitempty"`
ProcessorFeatures string `json:"processorFeatures,omitempty"`
Servicecode string `json:"servicecode,omitempty"`
Servicename string `json:"servicename,omitempty"`
Storage string `json:"storage,omitempty"`
Tenancy string `json:"tenancy,omitempty"`
Usagetype string `json:"usagetype,omitempty"`
Vcpu string `json:"vcpu,omitempty"`
}
Attributes attributes of a computing instance
type Card ¶
type Card struct {
EffectiveDate string `json:"effectiveDate,omitempty"`
OfferTermCode string `json:"offerTermCode,omitempty"`
PriceDimensions PriceDimensions `json:"priceDimensions,omitempty"`
Sku string `json:"sku,omitempty"`
TermAttributes TermAttributes `json:"termAttributes,omitempty"`
}
Card compute instance price card
type IPInSubnet ¶
IPInSubnet ...
type InstanceType ¶
InstanceType is an EC2 instance type.
type Price ¶
type Price struct {
Product Product `json:"product,omitempty"`
PublicationDate string `json:"publicationDate,omitempty"`
ServiceCode string `json:"serviceCode,omitempty"`
Terms Terms `json:"terms,omitempty"`
}
Price Compute instance price information
func NewPriceFromJSONValue ¶
NewPriceFromJSONValue creates a Price instance from the content of an aws.JSONValue
func (Price) GetCPUFreq ¶
func (Price) GetDiskSize ¶
func (Price) GetGPUNumber ¶
func (Price) GetRAMSize ¶
type PriceDimension ¶
type PriceDimension struct {
AppliesTo []string `json:"appliesTo,omitempty"`
BeginRange string `json:"beginRange,omitempty"`
Description string `json:"description,omitempty"`
EndRange string `json:"endRange,omitempty"`
PricePerUnit map[string]float32 `json:"pricePerUnit,omitempty"`
RateCode string `json:"RateCode,omitempty"`
Unit string `json:"Unit,omitempty"`
}
PriceDimension compute instance price related to term condition
type PriceDimensions ¶
type PriceDimensions struct {
PriceDimensionMap map[string]PriceDimension `json:"price_dimension_map,omitempty"`
}
PriceDimensions compute instance price dimensions
type Product ¶
type Product struct {
Attributes Attributes `json:"attributes,omitempty"`
ProductFamily string `json:"productFamily,omitempty"`
Sku string `json:"sku,omitempty"`
}
Product compute instance product
type TermAttributes ¶
type TermAttributes struct {
LeaseContractLength string `json:"leaseContractLength,omitempty"`
OfferingClass string `json:"offeringClass,omitempty"`
PurchaseOption string `json:"purchaseOption,omitempty"`
}
TermAttributes compute instance terms
Source Files
¶
Click to show internal directories.
Click to hide internal directories.