google_redis_cluster

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 {
	// AuthorizationMode: string, optional
	AuthorizationMode terra.StringValue `hcl:"authorization_mode,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// NodeType: string, optional
	NodeType terra.StringValue `hcl:"node_type,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// ReplicaCount: number, optional
	ReplicaCount terra.NumberValue `hcl:"replica_count,attr"`
	// ShardCount: number, required
	ShardCount terra.NumberValue `hcl:"shard_count,attr" validate:"required"`
	// TransitEncryptionMode: string, optional
	TransitEncryptionMode terra.StringValue `hcl:"transit_encryption_mode,attr"`
	// PscConfigs: min=1
	PscConfigs []PscConfigs `hcl:"psc_configs,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_redis_cluster.

type DiscoveryEndpointsAttributes

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

func (DiscoveryEndpointsAttributes) Address

func (DiscoveryEndpointsAttributes) InternalRef

func (de DiscoveryEndpointsAttributes) InternalRef() (terra.Reference, error)

func (DiscoveryEndpointsAttributes) InternalTokens

func (de DiscoveryEndpointsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DiscoveryEndpointsAttributes) InternalWithRef

func (DiscoveryEndpointsAttributes) Port

func (DiscoveryEndpointsAttributes) PscConfig

type DiscoveryEndpointsPscConfigAttributes

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

func (DiscoveryEndpointsPscConfigAttributes) InternalRef

func (DiscoveryEndpointsPscConfigAttributes) InternalTokens

func (DiscoveryEndpointsPscConfigAttributes) InternalWithRef

func (DiscoveryEndpointsPscConfigAttributes) Network

type DiscoveryEndpointsPscConfigState

type DiscoveryEndpointsPscConfigState struct {
	Network string `json:"network"`
}

type DiscoveryEndpointsState

type DiscoveryEndpointsState struct {
	Address   string                             `json:"address"`
	Port      float64                            `json:"port"`
	PscConfig []DiscoveryEndpointsPscConfigState `json:"psc_config"`
}

type PscConfigs

type PscConfigs struct {
	// Network: string, required
	Network terra.StringValue `hcl:"network,attr" validate:"required"`
}

type PscConfigsAttributes

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

func (PscConfigsAttributes) InternalRef

func (pc PscConfigsAttributes) InternalRef() (terra.Reference, error)

func (PscConfigsAttributes) InternalTokens

func (pc PscConfigsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PscConfigsAttributes) InternalWithRef

func (pc PscConfigsAttributes) InternalWithRef(ref terra.Reference) PscConfigsAttributes

func (PscConfigsAttributes) Network

func (pc PscConfigsAttributes) Network() terra.StringValue

type PscConfigsState

type PscConfigsState struct {
	Network string `json:"network"`
}

type PscConnectionsAttributes

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

func (PscConnectionsAttributes) Address

func (PscConnectionsAttributes) ForwardingRule

func (pc PscConnectionsAttributes) ForwardingRule() terra.StringValue

func (PscConnectionsAttributes) InternalRef

func (pc PscConnectionsAttributes) InternalRef() (terra.Reference, error)

func (PscConnectionsAttributes) InternalTokens

func (pc PscConnectionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PscConnectionsAttributes) InternalWithRef

func (PscConnectionsAttributes) Network

func (PscConnectionsAttributes) ProjectId

func (PscConnectionsAttributes) PscConnectionId

func (pc PscConnectionsAttributes) PscConnectionId() terra.StringValue

type PscConnectionsState

type PscConnectionsState struct {
	Address         string `json:"address"`
	ForwardingRule  string `json:"forwarding_rule"`
	Network         string `json:"network"`
	ProjectId       string `json:"project_id"`
	PscConnectionId string `json:"psc_connection_id"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (grc *Resource) Attributes() googleRedisClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (grc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (grc *Resource) State() (*googleRedisClusterState, bool)

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

func (*Resource) StateMust

func (grc *Resource) StateMust() *googleRedisClusterState

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

func (*Resource) Type

func (grc *Resource) Type() string

Type returns the Terraform object type for Resource.

type StateInfoAttributes

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

func (StateInfoAttributes) InternalRef

func (si StateInfoAttributes) InternalRef() (terra.Reference, error)

func (StateInfoAttributes) InternalTokens

func (si StateInfoAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StateInfoAttributes) InternalWithRef

func (si StateInfoAttributes) InternalWithRef(ref terra.Reference) StateInfoAttributes

func (StateInfoAttributes) UpdateInfo

type StateInfoState

type StateInfoState struct {
	UpdateInfo []StateInfoUpdateInfoState `json:"update_info"`
}

type StateInfoUpdateInfoAttributes

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

func (StateInfoUpdateInfoAttributes) InternalRef

func (ui StateInfoUpdateInfoAttributes) InternalRef() (terra.Reference, error)

func (StateInfoUpdateInfoAttributes) InternalTokens

func (ui StateInfoUpdateInfoAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StateInfoUpdateInfoAttributes) InternalWithRef

func (StateInfoUpdateInfoAttributes) TargetReplicaCount

func (ui StateInfoUpdateInfoAttributes) TargetReplicaCount() terra.NumberValue

func (StateInfoUpdateInfoAttributes) TargetShardCount

func (ui StateInfoUpdateInfoAttributes) TargetShardCount() terra.NumberValue

type StateInfoUpdateInfoState

type StateInfoUpdateInfoState struct {
	TargetReplicaCount float64 `json:"target_replica_count"`
	TargetShardCount   float64 `json:"target_shard_count"`
}

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