google_bigtable_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 {
	// DeletionProtection: bool, optional
	DeletionProtection terra.BoolValue `hcl:"deletion_protection,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceType: string, optional
	InstanceType terra.StringValue `hcl:"instance_type,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Cluster: min=0
	Cluster []Cluster `hcl:"cluster,block" validate:"min=0"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_bigtable_instance.

type Cluster

type Cluster struct {
	// ClusterId: string, required
	ClusterId terra.StringValue `hcl:"cluster_id,attr" validate:"required"`
	// KmsKeyName: string, optional
	KmsKeyName terra.StringValue `hcl:"kms_key_name,attr"`
	// NumNodes: number, optional
	NumNodes terra.NumberValue `hcl:"num_nodes,attr"`
	// StorageType: string, optional
	StorageType terra.StringValue `hcl:"storage_type,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
	// ClusterAutoscalingConfig: optional
	AutoscalingConfig *ClusterAutoscalingConfig `hcl:"autoscaling_config,block"`
}

type ClusterAttributes

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

func (ClusterAttributes) AutoscalingConfig

func (ClusterAttributes) ClusterId

func (c ClusterAttributes) ClusterId() terra.StringValue

func (ClusterAttributes) InternalRef

func (c ClusterAttributes) InternalRef() (terra.Reference, error)

func (ClusterAttributes) InternalTokens

func (c ClusterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ClusterAttributes) InternalWithRef

func (c ClusterAttributes) InternalWithRef(ref terra.Reference) ClusterAttributes

func (ClusterAttributes) KmsKeyName

func (c ClusterAttributes) KmsKeyName() terra.StringValue

func (ClusterAttributes) NumNodes

func (c ClusterAttributes) NumNodes() terra.NumberValue

func (ClusterAttributes) State

func (ClusterAttributes) StorageType

func (c ClusterAttributes) StorageType() terra.StringValue

func (ClusterAttributes) Zone

type ClusterAutoscalingConfig

type ClusterAutoscalingConfig struct {
	// CpuTarget: number, required
	CpuTarget terra.NumberValue `hcl:"cpu_target,attr" validate:"required"`
	// MaxNodes: number, required
	MaxNodes terra.NumberValue `hcl:"max_nodes,attr" validate:"required"`
	// MinNodes: number, required
	MinNodes terra.NumberValue `hcl:"min_nodes,attr" validate:"required"`
	// StorageTarget: number, optional
	StorageTarget terra.NumberValue `hcl:"storage_target,attr"`
}

type ClusterAutoscalingConfigAttributes

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

func (ClusterAutoscalingConfigAttributes) CpuTarget

func (ClusterAutoscalingConfigAttributes) InternalRef

func (ClusterAutoscalingConfigAttributes) InternalTokens

func (ClusterAutoscalingConfigAttributes) InternalWithRef

func (ClusterAutoscalingConfigAttributes) MaxNodes

func (ClusterAutoscalingConfigAttributes) MinNodes

func (ClusterAutoscalingConfigAttributes) StorageTarget

type ClusterAutoscalingConfigState

type ClusterAutoscalingConfigState struct {
	CpuTarget     float64 `json:"cpu_target"`
	MaxNodes      float64 `json:"max_nodes"`
	MinNodes      float64 `json:"min_nodes"`
	StorageTarget float64 `json:"storage_target"`
}

type ClusterState

type ClusterState struct {
	ClusterId         string                          `json:"cluster_id"`
	KmsKeyName        string                          `json:"kms_key_name"`
	NumNodes          float64                         `json:"num_nodes"`
	State             string                          `json:"state"`
	StorageType       string                          `json:"storage_type"`
	Zone              string                          `json:"zone"`
	AutoscalingConfig []ClusterAutoscalingConfigState `json:"autoscaling_config"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gbi *Resource) Attributes() googleBigtableInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gbi *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gbi *Resource) State() (*googleBigtableInstanceState, bool)

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

func (*Resource) StateMust

func (gbi *Resource) StateMust() *googleBigtableInstanceState

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

func (*Resource) Type

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