google_spanner_instance

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 {
	// Config: string, required
	Config terra.StringValue `hcl:"config,attr" validate:"required"`
	// DisplayName: string, required
	DisplayName terra.StringValue `hcl:"display_name,attr" validate:"required"`
	// ForceDestroy: bool, optional
	ForceDestroy terra.BoolValue `hcl:"force_destroy,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NumNodes: number, optional
	NumNodes terra.NumberValue `hcl:"num_nodes,attr"`
	// ProcessingUnits: number, optional
	ProcessingUnits terra.NumberValue `hcl:"processing_units,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// AutoscalingConfig: optional
	AutoscalingConfig *AutoscalingConfig `hcl:"autoscaling_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_spanner_instance.

type AutoscalingConfig

type AutoscalingConfig struct {
	// AutoscalingConfigAutoscalingLimits: optional
	AutoscalingLimits *AutoscalingConfigAutoscalingLimits `hcl:"autoscaling_limits,block"`
	// AutoscalingConfigAutoscalingTargets: optional
	AutoscalingTargets *AutoscalingConfigAutoscalingTargets `hcl:"autoscaling_targets,block"`
}

type AutoscalingConfigAttributes

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

func (AutoscalingConfigAttributes) AutoscalingLimits

func (AutoscalingConfigAttributes) AutoscalingTargets

func (AutoscalingConfigAttributes) InternalRef

func (ac AutoscalingConfigAttributes) InternalRef() (terra.Reference, error)

func (AutoscalingConfigAttributes) InternalTokens

func (ac AutoscalingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AutoscalingConfigAttributes) InternalWithRef

type AutoscalingConfigAutoscalingLimits

type AutoscalingConfigAutoscalingLimits struct {
	// MaxNodes: number, optional
	MaxNodes terra.NumberValue `hcl:"max_nodes,attr"`
	// MaxProcessingUnits: number, optional
	MaxProcessingUnits terra.NumberValue `hcl:"max_processing_units,attr"`
	// MinNodes: number, optional
	MinNodes terra.NumberValue `hcl:"min_nodes,attr"`
	// MinProcessingUnits: number, optional
	MinProcessingUnits terra.NumberValue `hcl:"min_processing_units,attr"`
}

type AutoscalingConfigAutoscalingLimitsAttributes

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

func (AutoscalingConfigAutoscalingLimitsAttributes) InternalRef

func (AutoscalingConfigAutoscalingLimitsAttributes) InternalTokens

func (AutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef

func (AutoscalingConfigAutoscalingLimitsAttributes) MaxNodes

func (AutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits

func (AutoscalingConfigAutoscalingLimitsAttributes) MinNodes

func (AutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits

type AutoscalingConfigAutoscalingLimitsState

type AutoscalingConfigAutoscalingLimitsState struct {
	MaxNodes           float64 `json:"max_nodes"`
	MaxProcessingUnits float64 `json:"max_processing_units"`
	MinNodes           float64 `json:"min_nodes"`
	MinProcessingUnits float64 `json:"min_processing_units"`
}

type AutoscalingConfigAutoscalingTargets

type AutoscalingConfigAutoscalingTargets struct {
	// HighPriorityCpuUtilizationPercent: number, optional
	HighPriorityCpuUtilizationPercent terra.NumberValue `hcl:"high_priority_cpu_utilization_percent,attr"`
	// StorageUtilizationPercent: number, optional
	StorageUtilizationPercent terra.NumberValue `hcl:"storage_utilization_percent,attr"`
}

type AutoscalingConfigAutoscalingTargetsAttributes

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

func (AutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent

func (at AutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent() terra.NumberValue

func (AutoscalingConfigAutoscalingTargetsAttributes) InternalRef

func (AutoscalingConfigAutoscalingTargetsAttributes) InternalTokens

func (AutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef

func (AutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent

func (at AutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent() terra.NumberValue

type AutoscalingConfigAutoscalingTargetsState

type AutoscalingConfigAutoscalingTargetsState struct {
	HighPriorityCpuUtilizationPercent float64 `json:"high_priority_cpu_utilization_percent"`
	StorageUtilizationPercent         float64 `json:"storage_utilization_percent"`
}

type AutoscalingConfigState

type AutoscalingConfigState struct {
	AutoscalingLimits  []AutoscalingConfigAutoscalingLimitsState  `json:"autoscaling_limits"`
	AutoscalingTargets []AutoscalingConfigAutoscalingTargetsState `json:"autoscaling_targets"`
}

type DataArgs

type DataArgs struct {
	// Config: string, optional
	Config terra.StringValue `hcl:"config,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
}

DataArgs contains the configurations for google_spanner_instance.

type DataAutoscalingConfigAttributes

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

func (DataAutoscalingConfigAttributes) AutoscalingLimits

func (DataAutoscalingConfigAttributes) AutoscalingTargets

func (DataAutoscalingConfigAttributes) InternalRef

func (DataAutoscalingConfigAttributes) InternalTokens

func (ac DataAutoscalingConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAutoscalingConfigAttributes) InternalWithRef

type DataAutoscalingConfigAutoscalingLimitsAttributes

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

func (DataAutoscalingConfigAutoscalingLimitsAttributes) InternalRef

func (DataAutoscalingConfigAutoscalingLimitsAttributes) InternalTokens

func (DataAutoscalingConfigAutoscalingLimitsAttributes) InternalWithRef

func (DataAutoscalingConfigAutoscalingLimitsAttributes) MaxNodes

func (DataAutoscalingConfigAutoscalingLimitsAttributes) MaxProcessingUnits

func (DataAutoscalingConfigAutoscalingLimitsAttributes) MinNodes

func (DataAutoscalingConfigAutoscalingLimitsAttributes) MinProcessingUnits

type DataAutoscalingConfigAutoscalingLimitsState

type DataAutoscalingConfigAutoscalingLimitsState struct {
	MaxNodes           float64 `json:"max_nodes"`
	MaxProcessingUnits float64 `json:"max_processing_units"`
	MinNodes           float64 `json:"min_nodes"`
	MinProcessingUnits float64 `json:"min_processing_units"`
}

type DataAutoscalingConfigAutoscalingTargetsAttributes

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

func (DataAutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent

func (at DataAutoscalingConfigAutoscalingTargetsAttributes) HighPriorityCpuUtilizationPercent() terra.NumberValue

func (DataAutoscalingConfigAutoscalingTargetsAttributes) InternalRef

func (DataAutoscalingConfigAutoscalingTargetsAttributes) InternalTokens

func (DataAutoscalingConfigAutoscalingTargetsAttributes) InternalWithRef

func (DataAutoscalingConfigAutoscalingTargetsAttributes) StorageUtilizationPercent

type DataAutoscalingConfigAutoscalingTargetsState

type DataAutoscalingConfigAutoscalingTargetsState struct {
	HighPriorityCpuUtilizationPercent float64 `json:"high_priority_cpu_utilization_percent"`
	StorageUtilizationPercent         float64 `json:"storage_utilization_percent"`
}

type DataAutoscalingConfigState

type DataAutoscalingConfigState struct {
	AutoscalingLimits  []DataAutoscalingConfigAutoscalingLimitsState  `json:"autoscaling_limits"`
	AutoscalingTargets []DataAutoscalingConfigAutoscalingTargetsState `json:"autoscaling_targets"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_spanner_instance.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gsi *DataSource) Attributes() dataGoogleSpannerInstanceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (gsi *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gsi *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gsi *DataSource) LocalName() string

LocalName returns the local name for DataSource.

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 google_spanner_instance.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gsi *Resource) Attributes() googleSpannerInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gsi *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gsi *Resource) State() (*googleSpannerInstanceState, bool)

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

func (*Resource) StateMust

func (gsi *Resource) StateMust() *googleSpannerInstanceState

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

func (*Resource) Type

func (gsi *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"`
	// 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) Update

type TimeoutsState

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

Jump to

Keyboard shortcuts

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