azurerm_subscription_cost_management_view

package
v0.0.0-...-4deecce Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// Accumulated: bool, required
	Accumulated terra.BoolValue `hcl:"accumulated,attr" validate:"required"`
	// ChartType: string, required
	ChartType terra.StringValue `hcl:"chart_type,attr" validate:"required"`
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ReportType: string, required
	ReportType terra.StringValue `hcl:"report_type,attr" validate:"required"`
	// SubscriptionId: string, required
	SubscriptionId terra.StringValue `hcl:"subscription_id,attr" validate:"required"`
	// Timeframe: string, required
	Timeframe terra.StringValue `hcl:"timeframe,attr" validate:"required"`
	// Dataset: required
	Dataset *Dataset `hcl:"dataset,block" validate:"required"`
	// Kpi: min=0
	Kpi []Kpi `hcl:"kpi,block" validate:"min=0"`
	// Pivot: min=0
	Pivot []Pivot `hcl:"pivot,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_subscription_cost_management_view.

type Dataset

type Dataset struct {
	// Granularity: string, required
	Granularity terra.StringValue `hcl:"granularity,attr" validate:"required"`
	// DatasetAggregation: min=1
	Aggregation []DatasetAggregation `hcl:"aggregation,block" validate:"min=1"`
	// DatasetGrouping: min=0
	Grouping []DatasetGrouping `hcl:"grouping,block" validate:"min=0"`
	// DatasetSorting: min=0
	Sorting []DatasetSorting `hcl:"sorting,block" validate:"min=0"`
}

type DatasetAggregation

type DatasetAggregation struct {
	// ColumnName: string, required
	ColumnName terra.StringValue `hcl:"column_name,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type DatasetAggregationAttributes

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

func (DatasetAggregationAttributes) ColumnName

func (DatasetAggregationAttributes) InternalRef

func (DatasetAggregationAttributes) InternalTokens

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

func (DatasetAggregationAttributes) InternalWithRef

func (DatasetAggregationAttributes) Name

type DatasetAggregationState

type DatasetAggregationState struct {
	ColumnName string `json:"column_name"`
	Name       string `json:"name"`
}

type DatasetAttributes

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

func (DatasetAttributes) Aggregation

func (DatasetAttributes) Granularity

func (d DatasetAttributes) Granularity() terra.StringValue

func (DatasetAttributes) Grouping

func (DatasetAttributes) InternalRef

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

func (DatasetAttributes) InternalTokens

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

func (DatasetAttributes) InternalWithRef

func (d DatasetAttributes) InternalWithRef(ref terra.Reference) DatasetAttributes

func (DatasetAttributes) Sorting

type DatasetGrouping

type DatasetGrouping struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type DatasetGroupingAttributes

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

func (DatasetGroupingAttributes) InternalRef

func (g DatasetGroupingAttributes) InternalRef() (terra.Reference, error)

func (DatasetGroupingAttributes) InternalTokens

func (g DatasetGroupingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DatasetGroupingAttributes) InternalWithRef

func (DatasetGroupingAttributes) Name

func (DatasetGroupingAttributes) Type

type DatasetGroupingState

type DatasetGroupingState struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type DatasetSorting

type DatasetSorting struct {
	// Direction: string, required
	Direction terra.StringValue `hcl:"direction,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type DatasetSortingAttributes

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

func (DatasetSortingAttributes) Direction

func (DatasetSortingAttributes) InternalRef

func (s DatasetSortingAttributes) InternalRef() (terra.Reference, error)

func (DatasetSortingAttributes) InternalTokens

func (s DatasetSortingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DatasetSortingAttributes) InternalWithRef

func (DatasetSortingAttributes) Name

type DatasetSortingState

type DatasetSortingState struct {
	Direction string `json:"direction"`
	Name      string `json:"name"`
}

type DatasetState

type DatasetState struct {
	Granularity string                    `json:"granularity"`
	Aggregation []DatasetAggregationState `json:"aggregation"`
	Grouping    []DatasetGroupingState    `json:"grouping"`
	Sorting     []DatasetSortingState     `json:"sorting"`
}

type Kpi

type Kpi struct {
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type KpiAttributes

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

func (KpiAttributes) InternalRef

func (k KpiAttributes) InternalRef() (terra.Reference, error)

func (KpiAttributes) InternalTokens

func (k KpiAttributes) InternalTokens() (hclwrite.Tokens, error)

func (KpiAttributes) InternalWithRef

func (k KpiAttributes) InternalWithRef(ref terra.Reference) KpiAttributes

func (KpiAttributes) Type

func (k KpiAttributes) Type() terra.StringValue

type KpiState

type KpiState struct {
	Type string `json:"type"`
}

type Pivot

type Pivot struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type PivotAttributes

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

func (PivotAttributes) InternalRef

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

func (PivotAttributes) InternalTokens

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

func (PivotAttributes) InternalWithRef

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

func (PivotAttributes) Name

func (PivotAttributes) Type

type PivotState

type PivotState struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource azurerm_subscription_cost_management_view.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (ascmv *Resource) Attributes() azurermSubscriptionCostManagementViewAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (ascmv *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (ascmv *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (ascmv *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (ascmv *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (ascmv *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (ascmv *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (ascmv *Resource) State() (*azurermSubscriptionCostManagementViewState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (ascmv *Resource) StateMust() *azurermSubscriptionCostManagementViewState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (ascmv *Resource) Type() string

Type returns the Terraform object type for Resource.

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

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

func (TimeoutsAttributes) InternalTokens

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

func (TimeoutsAttributes) InternalWithRef

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

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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