google_alloydb_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 {
	// Annotations: map of string, optional
	Annotations terra.MapValue[terra.StringValue] `hcl:"annotations,attr"`
	// AvailabilityType: string, optional
	AvailabilityType terra.StringValue `hcl:"availability_type,attr"`
	// Cluster: string, required
	Cluster terra.StringValue `hcl:"cluster,attr" validate:"required"`
	// DatabaseFlags: map of string, optional
	DatabaseFlags terra.MapValue[terra.StringValue] `hcl:"database_flags,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// GceZone: string, optional
	GceZone terra.StringValue `hcl:"gce_zone,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceId: string, required
	InstanceId terra.StringValue `hcl:"instance_id,attr" validate:"required"`
	// InstanceType: string, required
	InstanceType terra.StringValue `hcl:"instance_type,attr" validate:"required"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// ClientConnectionConfig: optional
	ClientConnectionConfig *ClientConnectionConfig `hcl:"client_connection_config,block"`
	// MachineConfig: optional
	MachineConfig *MachineConfig `hcl:"machine_config,block"`
	// QueryInsightsConfig: optional
	QueryInsightsConfig *QueryInsightsConfig `hcl:"query_insights_config,block"`
	// ReadPoolConfig: optional
	ReadPoolConfig *ReadPoolConfig `hcl:"read_pool_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_alloydb_instance.

type ClientConnectionConfig

type ClientConnectionConfig struct {
	// RequireConnectors: bool, optional
	RequireConnectors terra.BoolValue `hcl:"require_connectors,attr"`
	// ClientConnectionConfigSslConfig: optional
	SslConfig *ClientConnectionConfigSslConfig `hcl:"ssl_config,block"`
}

type ClientConnectionConfigAttributes

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

func (ClientConnectionConfigAttributes) InternalRef

func (ClientConnectionConfigAttributes) InternalTokens

func (ccc ClientConnectionConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ClientConnectionConfigAttributes) InternalWithRef

func (ClientConnectionConfigAttributes) RequireConnectors

func (ccc ClientConnectionConfigAttributes) RequireConnectors() terra.BoolValue

func (ClientConnectionConfigAttributes) SslConfig

type ClientConnectionConfigSslConfig

type ClientConnectionConfigSslConfig struct {
	// SslMode: string, optional
	SslMode terra.StringValue `hcl:"ssl_mode,attr"`
}

type ClientConnectionConfigSslConfigAttributes

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

func (ClientConnectionConfigSslConfigAttributes) InternalRef

func (ClientConnectionConfigSslConfigAttributes) InternalTokens

func (ClientConnectionConfigSslConfigAttributes) InternalWithRef

func (ClientConnectionConfigSslConfigAttributes) SslMode

type ClientConnectionConfigSslConfigState

type ClientConnectionConfigSslConfigState struct {
	SslMode string `json:"ssl_mode"`
}

type ClientConnectionConfigState

type ClientConnectionConfigState struct {
	RequireConnectors bool                                   `json:"require_connectors"`
	SslConfig         []ClientConnectionConfigSslConfigState `json:"ssl_config"`
}

type MachineConfig

type MachineConfig struct {
	// CpuCount: number, optional
	CpuCount terra.NumberValue `hcl:"cpu_count,attr"`
}

type MachineConfigAttributes

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

func (MachineConfigAttributes) CpuCount

func (MachineConfigAttributes) InternalRef

func (mc MachineConfigAttributes) InternalRef() (terra.Reference, error)

func (MachineConfigAttributes) InternalTokens

func (mc MachineConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MachineConfigAttributes) InternalWithRef

type MachineConfigState

type MachineConfigState struct {
	CpuCount float64 `json:"cpu_count"`
}

type QueryInsightsConfig

type QueryInsightsConfig struct {
	// QueryPlansPerMinute: number, optional
	QueryPlansPerMinute terra.NumberValue `hcl:"query_plans_per_minute,attr"`
	// QueryStringLength: number, optional
	QueryStringLength terra.NumberValue `hcl:"query_string_length,attr"`
	// RecordApplicationTags: bool, optional
	RecordApplicationTags terra.BoolValue `hcl:"record_application_tags,attr"`
	// RecordClientAddress: bool, optional
	RecordClientAddress terra.BoolValue `hcl:"record_client_address,attr"`
}

type QueryInsightsConfigAttributes

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

func (QueryInsightsConfigAttributes) InternalRef

func (qic QueryInsightsConfigAttributes) InternalRef() (terra.Reference, error)

func (QueryInsightsConfigAttributes) InternalTokens

func (qic QueryInsightsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (QueryInsightsConfigAttributes) InternalWithRef

func (QueryInsightsConfigAttributes) QueryPlansPerMinute

func (qic QueryInsightsConfigAttributes) QueryPlansPerMinute() terra.NumberValue

func (QueryInsightsConfigAttributes) QueryStringLength

func (qic QueryInsightsConfigAttributes) QueryStringLength() terra.NumberValue

func (QueryInsightsConfigAttributes) RecordApplicationTags

func (qic QueryInsightsConfigAttributes) RecordApplicationTags() terra.BoolValue

func (QueryInsightsConfigAttributes) RecordClientAddress

func (qic QueryInsightsConfigAttributes) RecordClientAddress() terra.BoolValue

type QueryInsightsConfigState

type QueryInsightsConfigState struct {
	QueryPlansPerMinute   float64 `json:"query_plans_per_minute"`
	QueryStringLength     float64 `json:"query_string_length"`
	RecordApplicationTags bool    `json:"record_application_tags"`
	RecordClientAddress   bool    `json:"record_client_address"`
}

type ReadPoolConfig

type ReadPoolConfig struct {
	// NodeCount: number, optional
	NodeCount terra.NumberValue `hcl:"node_count,attr"`
}

type ReadPoolConfigAttributes

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

func (ReadPoolConfigAttributes) InternalRef

func (rpc ReadPoolConfigAttributes) InternalRef() (terra.Reference, error)

func (ReadPoolConfigAttributes) InternalTokens

func (rpc ReadPoolConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReadPoolConfigAttributes) InternalWithRef

func (ReadPoolConfigAttributes) NodeCount

func (rpc ReadPoolConfigAttributes) NodeCount() terra.NumberValue

type ReadPoolConfigState

type ReadPoolConfigState struct {
	NodeCount float64 `json:"node_count"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gai *Resource) Attributes() googleAlloydbInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gai *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gai *Resource) State() (*googleAlloydbInstanceState, bool)

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

func (*Resource) StateMust

func (gai *Resource) StateMust() *googleAlloydbInstanceState

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

func (*Resource) Type

func (gai *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