Versions in this module Expand all Collapse all v0 v0.7.5 Sep 25, 2024 Changes in this version + const CostAndUsageExamples + const ForecastExamples + func CostAndForecast() *cobra.Command + func HasAccountInformation(groupBy []string) bool + func Initialize() + func IsValidGranularity(g string) bool + func IsValidMetric(m string) bool + func IsValidPrintFormat(f string) bool + func PresetList() []types.PresetParams + func RootCommand() *cobra.Command + func ValidateEndDate(endDate, startDate string) error + func ValidateInput(input types.CommandLineInput) error + func ValidateStartDate(startDate string) error + type CostCommandType struct + Cmd *cobra.Command + func (c *CostCommandType) DefineFlags() + func (c *CostCommandType) Execute(req types.CostAndUsageRequestType) error + func (c *CostCommandType) ExtractFilterBySelection() (types.FilterBySelections, error) + func (c *CostCommandType) ExtractGroupBySelections() ([]string, []string) + func (c *CostCommandType) ExtractPrintPreferences() types.PrintOptions + func (c *CostCommandType) ExtractStartAndEndDates() (string, string, error) + func (c *CostCommandType) InputHandler(validatorFn func(input types.CommandLineInput) error) (types.CommandLineInput, error) + func (c *CostCommandType) RunE(cmd *cobra.Command, args []string) error + func (c *CostCommandType) SynthesizeRequest(input types.CommandLineInput) types.CostAndUsageRequestType + type ForecastCommandType struct + Cmd *cobra.Command + func (f *ForecastCommandType) DefineFlags() + func (f *ForecastCommandType) Execute(r types.GetCostForecastRequest) (*costexplorer.GetCostForecastOutput, error) + func (f *ForecastCommandType) InputHandler() types.ForecastCommandLineInput + func (f *ForecastCommandType) RunE(cmd *cobra.Command, args []string) error + func (f *ForecastCommandType) SynthesizeRequest(input types.ForecastCommandLineInput) (types.GetCostForecastRequest, error) + type ValidationError struct + Message string + func (e ValidationError) Error() string