cecostcategory

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And struct {
	// AndCostCategory: optional
	CostCategory *AndCostCategory `hcl:"cost_category,block"`
	// AndDimension: optional
	Dimension *AndDimension `hcl:"dimension,block"`
	// AndTags: optional
	Tags *AndTags `hcl:"tags,block"`
}

type AndAttributes

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

func (AndAttributes) CostCategory

func (AndAttributes) Dimension

func (AndAttributes) InternalRef

func (a AndAttributes) InternalRef() (terra.Reference, error)

func (AndAttributes) InternalTokens

func (a AndAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AndAttributes) InternalWithRef

func (a AndAttributes) InternalWithRef(ref terra.Reference) AndAttributes

func (AndAttributes) Tags

type AndCostCategory

type AndCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type AndCostCategoryAttributes

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

func (AndCostCategoryAttributes) InternalRef

func (cc AndCostCategoryAttributes) InternalRef() (terra.Reference, error)

func (AndCostCategoryAttributes) InternalTokens

func (cc AndCostCategoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AndCostCategoryAttributes) InternalWithRef

func (AndCostCategoryAttributes) Key

func (AndCostCategoryAttributes) MatchOptions

func (AndCostCategoryAttributes) Values

type AndCostCategoryState

type AndCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type AndDimension

type AndDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type AndDimensionAttributes

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

func (AndDimensionAttributes) InternalRef

func (d AndDimensionAttributes) InternalRef() (terra.Reference, error)

func (AndDimensionAttributes) InternalTokens

func (d AndDimensionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AndDimensionAttributes) InternalWithRef

func (AndDimensionAttributes) Key

func (AndDimensionAttributes) MatchOptions

func (AndDimensionAttributes) Values

type AndDimensionState

type AndDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type AndState

type AndState struct {
	CostCategory []AndCostCategoryState `json:"cost_category"`
	Dimension    []AndDimensionState    `json:"dimension"`
	Tags         []AndTagsState         `json:"tags"`
}

type AndTags

type AndTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type AndTagsAttributes

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

func (AndTagsAttributes) InternalRef

func (t AndTagsAttributes) InternalRef() (terra.Reference, error)

func (AndTagsAttributes) InternalTokens

func (t AndTagsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AndTagsAttributes) InternalWithRef

func (t AndTagsAttributes) InternalWithRef(ref terra.Reference) AndTagsAttributes

func (AndTagsAttributes) Key

func (AndTagsAttributes) MatchOptions

func (t AndTagsAttributes) MatchOptions() terra.SetValue[terra.StringValue]

func (AndTagsAttributes) Values

type AndTagsState

type AndTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type InheritedValue

type InheritedValue struct {
	// DimensionKey: string, optional
	DimensionKey terra.StringValue `hcl:"dimension_key,attr"`
	// DimensionName: string, optional
	DimensionName terra.StringValue `hcl:"dimension_name,attr"`
}

type InheritedValueAttributes

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

func (InheritedValueAttributes) DimensionKey

func (iv InheritedValueAttributes) DimensionKey() terra.StringValue

func (InheritedValueAttributes) DimensionName

func (iv InheritedValueAttributes) DimensionName() terra.StringValue

func (InheritedValueAttributes) InternalRef

func (iv InheritedValueAttributes) InternalRef() (terra.Reference, error)

func (InheritedValueAttributes) InternalTokens

func (iv InheritedValueAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InheritedValueAttributes) InternalWithRef

type InheritedValueState

type InheritedValueState struct {
	DimensionKey  string `json:"dimension_key"`
	DimensionName string `json:"dimension_name"`
}

type Not

type Not struct {
	// NotCostCategory: optional
	CostCategory *NotCostCategory `hcl:"cost_category,block"`
	// NotDimension: optional
	Dimension *NotDimension `hcl:"dimension,block"`
	// NotTags: optional
	Tags *NotTags `hcl:"tags,block"`
}

type NotAttributes

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

func (NotAttributes) CostCategory

func (NotAttributes) Dimension

func (NotAttributes) InternalRef

func (n NotAttributes) InternalRef() (terra.Reference, error)

func (NotAttributes) InternalTokens

func (n NotAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotAttributes) InternalWithRef

func (n NotAttributes) InternalWithRef(ref terra.Reference) NotAttributes

func (NotAttributes) Tags

type NotCostCategory

type NotCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type NotCostCategoryAttributes

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

func (NotCostCategoryAttributes) InternalRef

func (cc NotCostCategoryAttributes) InternalRef() (terra.Reference, error)

func (NotCostCategoryAttributes) InternalTokens

func (cc NotCostCategoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotCostCategoryAttributes) InternalWithRef

func (NotCostCategoryAttributes) Key

func (NotCostCategoryAttributes) MatchOptions

func (NotCostCategoryAttributes) Values

type NotCostCategoryState

type NotCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type NotDimension

type NotDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type NotDimensionAttributes

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

func (NotDimensionAttributes) InternalRef

func (d NotDimensionAttributes) InternalRef() (terra.Reference, error)

func (NotDimensionAttributes) InternalTokens

func (d NotDimensionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotDimensionAttributes) InternalWithRef

func (NotDimensionAttributes) Key

func (NotDimensionAttributes) MatchOptions

func (NotDimensionAttributes) Values

type NotDimensionState

type NotDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type NotState

type NotState struct {
	CostCategory []NotCostCategoryState `json:"cost_category"`
	Dimension    []NotDimensionState    `json:"dimension"`
	Tags         []NotTagsState         `json:"tags"`
}

type NotTags

type NotTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type NotTagsAttributes

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

func (NotTagsAttributes) InternalRef

func (t NotTagsAttributes) InternalRef() (terra.Reference, error)

func (NotTagsAttributes) InternalTokens

func (t NotTagsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NotTagsAttributes) InternalWithRef

func (t NotTagsAttributes) InternalWithRef(ref terra.Reference) NotTagsAttributes

func (NotTagsAttributes) Key

func (NotTagsAttributes) MatchOptions

func (t NotTagsAttributes) MatchOptions() terra.SetValue[terra.StringValue]

func (NotTagsAttributes) Values

type NotTagsState

type NotTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type Or

type Or struct {
	// OrCostCategory: optional
	CostCategory *OrCostCategory `hcl:"cost_category,block"`
	// OrDimension: optional
	Dimension *OrDimension `hcl:"dimension,block"`
	// OrTags: optional
	Tags *OrTags `hcl:"tags,block"`
}

type OrAttributes

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

func (OrAttributes) CostCategory

func (OrAttributes) Dimension

func (OrAttributes) InternalRef

func (o OrAttributes) InternalRef() (terra.Reference, error)

func (OrAttributes) InternalTokens

func (o OrAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OrAttributes) InternalWithRef

func (o OrAttributes) InternalWithRef(ref terra.Reference) OrAttributes

func (OrAttributes) Tags

type OrCostCategory

type OrCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type OrCostCategoryAttributes

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

func (OrCostCategoryAttributes) InternalRef

func (cc OrCostCategoryAttributes) InternalRef() (terra.Reference, error)

func (OrCostCategoryAttributes) InternalTokens

func (cc OrCostCategoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OrCostCategoryAttributes) InternalWithRef

func (OrCostCategoryAttributes) Key

func (OrCostCategoryAttributes) MatchOptions

func (OrCostCategoryAttributes) Values

type OrCostCategoryState

type OrCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type OrDimension

type OrDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type OrDimensionAttributes

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

func (OrDimensionAttributes) InternalRef

func (d OrDimensionAttributes) InternalRef() (terra.Reference, error)

func (OrDimensionAttributes) InternalTokens

func (d OrDimensionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OrDimensionAttributes) InternalWithRef

func (OrDimensionAttributes) Key

func (OrDimensionAttributes) MatchOptions

func (OrDimensionAttributes) Values

type OrDimensionState

type OrDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type OrState

type OrState struct {
	CostCategory []OrCostCategoryState `json:"cost_category"`
	Dimension    []OrDimensionState    `json:"dimension"`
	Tags         []OrTagsState         `json:"tags"`
}

type OrTags

type OrTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type OrTagsAttributes

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

func (OrTagsAttributes) InternalRef

func (t OrTagsAttributes) InternalRef() (terra.Reference, error)

func (OrTagsAttributes) InternalTokens

func (t OrTagsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (OrTagsAttributes) InternalWithRef

func (t OrTagsAttributes) InternalWithRef(ref terra.Reference) OrTagsAttributes

func (OrTagsAttributes) Key

func (OrTagsAttributes) MatchOptions

func (t OrTagsAttributes) MatchOptions() terra.SetValue[terra.StringValue]

func (OrTagsAttributes) Values

type OrTagsState

type OrTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type Parameter

type Parameter struct {
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Values: list of string, optional
	Values terra.ListValue[terra.StringValue] `hcl:"values,attr"`
}

type ParameterAttributes

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

func (ParameterAttributes) InternalRef

func (p ParameterAttributes) InternalRef() (terra.Reference, error)

func (ParameterAttributes) InternalTokens

func (p ParameterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ParameterAttributes) InternalWithRef

func (p ParameterAttributes) InternalWithRef(ref terra.Reference) ParameterAttributes

func (ParameterAttributes) Type

func (ParameterAttributes) Values

type ParameterState

type ParameterState struct {
	Type   string   `json:"type"`
	Values []string `json:"values"`
}

type Rule

type Rule struct {
	// Type: string, optional
	Type terra.StringValue `hcl:"type,attr"`
	// Value: string, optional
	Value terra.StringValue `hcl:"value,attr"`
	// InheritedValue: optional
	InheritedValue *InheritedValue `hcl:"inherited_value,block"`
	// RuleRule: optional
	Rule *RuleRule `hcl:"rule,block"`
}

type RuleAttributes

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

func (RuleAttributes) InheritedValue

func (RuleAttributes) InternalRef

func (r RuleAttributes) InternalRef() (terra.Reference, error)

func (RuleAttributes) InternalTokens

func (r RuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleAttributes) InternalWithRef

func (r RuleAttributes) InternalWithRef(ref terra.Reference) RuleAttributes

func (RuleAttributes) Rule

func (RuleAttributes) Type

func (r RuleAttributes) Type() terra.StringValue

func (RuleAttributes) Value

func (r RuleAttributes) Value() terra.StringValue

type RuleCostCategory

type RuleCostCategory struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type RuleCostCategoryAttributes

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

func (RuleCostCategoryAttributes) InternalRef

func (cc RuleCostCategoryAttributes) InternalRef() (terra.Reference, error)

func (RuleCostCategoryAttributes) InternalTokens

func (cc RuleCostCategoryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleCostCategoryAttributes) InternalWithRef

func (RuleCostCategoryAttributes) Key

func (RuleCostCategoryAttributes) MatchOptions

func (RuleCostCategoryAttributes) Values

type RuleCostCategoryState

type RuleCostCategoryState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type RuleDimension

type RuleDimension struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type RuleDimensionAttributes

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

func (RuleDimensionAttributes) InternalRef

func (d RuleDimensionAttributes) InternalRef() (terra.Reference, error)

func (RuleDimensionAttributes) InternalTokens

func (d RuleDimensionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleDimensionAttributes) InternalWithRef

func (RuleDimensionAttributes) Key

func (RuleDimensionAttributes) MatchOptions

func (RuleDimensionAttributes) Values

type RuleDimensionState

type RuleDimensionState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type RuleRule

type RuleRule struct {
	// And: min=0
	And []And `hcl:"and,block" validate:"min=0"`
	// RuleCostCategory: optional
	CostCategory *RuleCostCategory `hcl:"cost_category,block"`
	// RuleDimension: optional
	Dimension *RuleDimension `hcl:"dimension,block"`
	// Not: optional
	Not *Not `hcl:"not,block"`
	// Or: min=0
	Or []Or `hcl:"or,block" validate:"min=0"`
	// RuleTags: optional
	Tags *RuleTags `hcl:"tags,block"`
}

type RuleRuleAttributes

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

func (RuleRuleAttributes) And

func (RuleRuleAttributes) CostCategory

func (RuleRuleAttributes) Dimension

func (RuleRuleAttributes) InternalRef

func (r RuleRuleAttributes) InternalRef() (terra.Reference, error)

func (RuleRuleAttributes) InternalTokens

func (r RuleRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleRuleAttributes) InternalWithRef

func (r RuleRuleAttributes) InternalWithRef(ref terra.Reference) RuleRuleAttributes

func (RuleRuleAttributes) Not

func (RuleRuleAttributes) Or

func (RuleRuleAttributes) Tags

type RuleRuleState

type RuleRuleState struct {
	And          []AndState              `json:"and"`
	CostCategory []RuleCostCategoryState `json:"cost_category"`
	Dimension    []RuleDimensionState    `json:"dimension"`
	Not          []NotState              `json:"not"`
	Or           []OrState               `json:"or"`
	Tags         []RuleTagsState         `json:"tags"`
}

type RuleState

type RuleState struct {
	Type           string                `json:"type"`
	Value          string                `json:"value"`
	InheritedValue []InheritedValueState `json:"inherited_value"`
	Rule           []RuleRuleState       `json:"rule"`
}

type RuleTags

type RuleTags struct {
	// Key: string, optional
	Key terra.StringValue `hcl:"key,attr"`
	// MatchOptions: set of string, optional
	MatchOptions terra.SetValue[terra.StringValue] `hcl:"match_options,attr"`
	// Values: set of string, optional
	Values terra.SetValue[terra.StringValue] `hcl:"values,attr"`
}

type RuleTagsAttributes

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

func (RuleTagsAttributes) InternalRef

func (t RuleTagsAttributes) InternalRef() (terra.Reference, error)

func (RuleTagsAttributes) InternalTokens

func (t RuleTagsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleTagsAttributes) InternalWithRef

func (t RuleTagsAttributes) InternalWithRef(ref terra.Reference) RuleTagsAttributes

func (RuleTagsAttributes) Key

func (RuleTagsAttributes) MatchOptions

func (RuleTagsAttributes) Values

type RuleTagsState

type RuleTagsState struct {
	Key          string   `json:"key"`
	MatchOptions []string `json:"match_options"`
	Values       []string `json:"values"`
}

type SplitChargeRule

type SplitChargeRule struct {
	// Method: string, required
	Method terra.StringValue `hcl:"method,attr" validate:"required"`
	// Source: string, required
	Source terra.StringValue `hcl:"source,attr" validate:"required"`
	// Targets: set of string, required
	Targets terra.SetValue[terra.StringValue] `hcl:"targets,attr" validate:"required"`
	// Parameter: min=0
	Parameter []Parameter `hcl:"parameter,block" validate:"min=0"`
}

type SplitChargeRuleAttributes

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

func (SplitChargeRuleAttributes) InternalRef

func (scr SplitChargeRuleAttributes) InternalRef() (terra.Reference, error)

func (SplitChargeRuleAttributes) InternalTokens

func (scr SplitChargeRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SplitChargeRuleAttributes) InternalWithRef

func (SplitChargeRuleAttributes) Method

func (SplitChargeRuleAttributes) Parameter

func (SplitChargeRuleAttributes) Source

func (SplitChargeRuleAttributes) Targets

type SplitChargeRuleState

type SplitChargeRuleState struct {
	Method    string           `json:"method"`
	Source    string           `json:"source"`
	Targets   []string         `json:"targets"`
	Parameter []ParameterState `json:"parameter"`
}

Jump to

Keyboard shortcuts

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