google_redis_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 {
	// AlternativeLocationId: string, optional
	AlternativeLocationId terra.StringValue `hcl:"alternative_location_id,attr"`
	// AuthEnabled: bool, optional
	AuthEnabled terra.BoolValue `hcl:"auth_enabled,attr"`
	// AuthorizedNetwork: string, optional
	AuthorizedNetwork terra.StringValue `hcl:"authorized_network,attr"`
	// ConnectMode: string, optional
	ConnectMode terra.StringValue `hcl:"connect_mode,attr"`
	// CustomerManagedKey: string, optional
	CustomerManagedKey terra.StringValue `hcl:"customer_managed_key,attr"`
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Labels: map of string, optional
	Labels terra.MapValue[terra.StringValue] `hcl:"labels,attr"`
	// LocationId: string, optional
	LocationId terra.StringValue `hcl:"location_id,attr"`
	// MemorySizeGb: number, required
	MemorySizeGb terra.NumberValue `hcl:"memory_size_gb,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// ReadReplicasMode: string, optional
	ReadReplicasMode terra.StringValue `hcl:"read_replicas_mode,attr"`
	// RedisConfigs: map of string, optional
	RedisConfigs terra.MapValue[terra.StringValue] `hcl:"redis_configs,attr"`
	// RedisVersion: string, optional
	RedisVersion terra.StringValue `hcl:"redis_version,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// ReplicaCount: number, optional
	ReplicaCount terra.NumberValue `hcl:"replica_count,attr"`
	// ReservedIpRange: string, optional
	ReservedIpRange terra.StringValue `hcl:"reserved_ip_range,attr"`
	// SecondaryIpRange: string, optional
	SecondaryIpRange terra.StringValue `hcl:"secondary_ip_range,attr"`
	// Tier: string, optional
	Tier terra.StringValue `hcl:"tier,attr"`
	// TransitEncryptionMode: string, optional
	TransitEncryptionMode terra.StringValue `hcl:"transit_encryption_mode,attr"`
	// MaintenancePolicy: optional
	MaintenancePolicy *MaintenancePolicy `hcl:"maintenance_policy,block"`
	// PersistenceConfig: optional
	PersistenceConfig *PersistenceConfig `hcl:"persistence_config,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_redis_instance.

type DataArgs

type DataArgs struct {
	// 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"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
}

DataArgs contains the configurations for google_redis_instance.

type DataMaintenancePolicyAttributes

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

func (DataMaintenancePolicyAttributes) CreateTime

func (DataMaintenancePolicyAttributes) Description

func (DataMaintenancePolicyAttributes) InternalRef

func (DataMaintenancePolicyAttributes) InternalTokens

func (mp DataMaintenancePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataMaintenancePolicyAttributes) InternalWithRef

func (DataMaintenancePolicyAttributes) UpdateTime

func (DataMaintenancePolicyAttributes) WeeklyMaintenanceWindow

type DataMaintenancePolicyState

type DataMaintenancePolicyState struct {
	CreateTime              string                                              `json:"create_time"`
	Description             string                                              `json:"description"`
	UpdateTime              string                                              `json:"update_time"`
	WeeklyMaintenanceWindow []DataMaintenancePolicyWeeklyMaintenanceWindowState `json:"weekly_maintenance_window"`
}

type DataMaintenancePolicyWeeklyMaintenanceWindowAttributes

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

func (DataMaintenancePolicyWeeklyMaintenanceWindowAttributes) Day

func (DataMaintenancePolicyWeeklyMaintenanceWindowAttributes) Duration

func (DataMaintenancePolicyWeeklyMaintenanceWindowAttributes) InternalRef

func (DataMaintenancePolicyWeeklyMaintenanceWindowAttributes) InternalTokens

func (DataMaintenancePolicyWeeklyMaintenanceWindowAttributes) InternalWithRef

type DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes

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

func (DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Hours

func (DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) InternalRef

func (DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) InternalTokens

func (DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) InternalWithRef

func (DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Minutes

func (DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Nanos

func (DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Seconds

type DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeState

type DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
	Nanos   float64 `json:"nanos"`
	Seconds float64 `json:"seconds"`
}

type DataMaintenancePolicyWeeklyMaintenanceWindowState

type DataMaintenancePolicyWeeklyMaintenanceWindowState struct {
	Day       string                                                       `json:"day"`
	Duration  string                                                       `json:"duration"`
	StartTime []DataMaintenancePolicyWeeklyMaintenanceWindowStartTimeState `json:"start_time"`
}

type DataMaintenanceScheduleAttributes

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

func (DataMaintenanceScheduleAttributes) EndTime

func (DataMaintenanceScheduleAttributes) InternalRef

func (DataMaintenanceScheduleAttributes) InternalTokens

func (ms DataMaintenanceScheduleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataMaintenanceScheduleAttributes) InternalWithRef

func (DataMaintenanceScheduleAttributes) ScheduleDeadlineTime

func (ms DataMaintenanceScheduleAttributes) ScheduleDeadlineTime() terra.StringValue

func (DataMaintenanceScheduleAttributes) StartTime

type DataMaintenanceScheduleState

type DataMaintenanceScheduleState struct {
	EndTime              string `json:"end_time"`
	ScheduleDeadlineTime string `json:"schedule_deadline_time"`
	StartTime            string `json:"start_time"`
}

type DataNodesAttributes

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

func (DataNodesAttributes) Id

func (DataNodesAttributes) InternalRef

func (n DataNodesAttributes) InternalRef() (terra.Reference, error)

func (DataNodesAttributes) InternalTokens

func (n DataNodesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataNodesAttributes) InternalWithRef

func (n DataNodesAttributes) InternalWithRef(ref terra.Reference) DataNodesAttributes

func (DataNodesAttributes) Zone

type DataNodesState

type DataNodesState struct {
	Id   string `json:"id"`
	Zone string `json:"zone"`
}

type DataPersistenceConfigAttributes

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

func (DataPersistenceConfigAttributes) InternalRef

func (DataPersistenceConfigAttributes) InternalTokens

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

func (DataPersistenceConfigAttributes) InternalWithRef

func (DataPersistenceConfigAttributes) PersistenceMode

func (pc DataPersistenceConfigAttributes) PersistenceMode() terra.StringValue

func (DataPersistenceConfigAttributes) RdbNextSnapshotTime

func (pc DataPersistenceConfigAttributes) RdbNextSnapshotTime() terra.StringValue

func (DataPersistenceConfigAttributes) RdbSnapshotPeriod

func (pc DataPersistenceConfigAttributes) RdbSnapshotPeriod() terra.StringValue

func (DataPersistenceConfigAttributes) RdbSnapshotStartTime

func (pc DataPersistenceConfigAttributes) RdbSnapshotStartTime() terra.StringValue

type DataPersistenceConfigState

type DataPersistenceConfigState struct {
	PersistenceMode      string `json:"persistence_mode"`
	RdbNextSnapshotTime  string `json:"rdb_next_snapshot_time"`
	RdbSnapshotPeriod    string `json:"rdb_snapshot_period"`
	RdbSnapshotStartTime string `json:"rdb_snapshot_start_time"`
}

type DataServerCaCertsAttributes

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

func (DataServerCaCertsAttributes) Cert

func (DataServerCaCertsAttributes) CreateTime

func (DataServerCaCertsAttributes) ExpireTime

func (DataServerCaCertsAttributes) InternalRef

func (scc DataServerCaCertsAttributes) InternalRef() (terra.Reference, error)

func (DataServerCaCertsAttributes) InternalTokens

func (scc DataServerCaCertsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataServerCaCertsAttributes) InternalWithRef

func (DataServerCaCertsAttributes) SerialNumber

func (scc DataServerCaCertsAttributes) SerialNumber() terra.StringValue

func (DataServerCaCertsAttributes) Sha1Fingerprint

func (scc DataServerCaCertsAttributes) Sha1Fingerprint() terra.StringValue

type DataServerCaCertsState

type DataServerCaCertsState struct {
	Cert            string `json:"cert"`
	CreateTime      string `json:"create_time"`
	ExpireTime      string `json:"expire_time"`
	SerialNumber    string `json:"serial_number"`
	Sha1Fingerprint string `json:"sha1_fingerprint"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_redis_instance.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gri *DataSource) Attributes() dataGoogleRedisInstanceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gri *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gri *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type MaintenancePolicy

type MaintenancePolicy struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// MaintenancePolicyWeeklyMaintenanceWindow: min=0
	WeeklyMaintenanceWindow []MaintenancePolicyWeeklyMaintenanceWindow `hcl:"weekly_maintenance_window,block" validate:"min=0"`
}

type MaintenancePolicyAttributes

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

func (MaintenancePolicyAttributes) CreateTime

func (MaintenancePolicyAttributes) Description

func (MaintenancePolicyAttributes) InternalRef

func (mp MaintenancePolicyAttributes) InternalRef() (terra.Reference, error)

func (MaintenancePolicyAttributes) InternalTokens

func (mp MaintenancePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaintenancePolicyAttributes) InternalWithRef

func (MaintenancePolicyAttributes) UpdateTime

func (MaintenancePolicyAttributes) WeeklyMaintenanceWindow

type MaintenancePolicyState

type MaintenancePolicyState struct {
	CreateTime              string                                          `json:"create_time"`
	Description             string                                          `json:"description"`
	UpdateTime              string                                          `json:"update_time"`
	WeeklyMaintenanceWindow []MaintenancePolicyWeeklyMaintenanceWindowState `json:"weekly_maintenance_window"`
}

type MaintenancePolicyWeeklyMaintenanceWindow

type MaintenancePolicyWeeklyMaintenanceWindow struct {
	// Day: string, required
	Day terra.StringValue `hcl:"day,attr" validate:"required"`
	// MaintenancePolicyWeeklyMaintenanceWindowStartTime: required
	StartTime *MaintenancePolicyWeeklyMaintenanceWindowStartTime `hcl:"start_time,block" validate:"required"`
}

type MaintenancePolicyWeeklyMaintenanceWindowAttributes

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

func (MaintenancePolicyWeeklyMaintenanceWindowAttributes) Day

func (MaintenancePolicyWeeklyMaintenanceWindowAttributes) Duration

func (MaintenancePolicyWeeklyMaintenanceWindowAttributes) InternalRef

func (MaintenancePolicyWeeklyMaintenanceWindowAttributes) InternalTokens

func (MaintenancePolicyWeeklyMaintenanceWindowAttributes) InternalWithRef

type MaintenancePolicyWeeklyMaintenanceWindowStartTime

type MaintenancePolicyWeeklyMaintenanceWindowStartTime struct {
	// Hours: number, optional
	Hours terra.NumberValue `hcl:"hours,attr"`
	// Minutes: number, optional
	Minutes terra.NumberValue `hcl:"minutes,attr"`
	// Nanos: number, optional
	Nanos terra.NumberValue `hcl:"nanos,attr"`
	// Seconds: number, optional
	Seconds terra.NumberValue `hcl:"seconds,attr"`
}

type MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes

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

func (MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Hours

func (MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) InternalRef

func (MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) InternalTokens

func (MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) InternalWithRef

func (MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Minutes

func (MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Nanos

func (MaintenancePolicyWeeklyMaintenanceWindowStartTimeAttributes) Seconds

type MaintenancePolicyWeeklyMaintenanceWindowStartTimeState

type MaintenancePolicyWeeklyMaintenanceWindowStartTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
	Nanos   float64 `json:"nanos"`
	Seconds float64 `json:"seconds"`
}

type MaintenancePolicyWeeklyMaintenanceWindowState

type MaintenancePolicyWeeklyMaintenanceWindowState struct {
	Day       string                                                   `json:"day"`
	Duration  string                                                   `json:"duration"`
	StartTime []MaintenancePolicyWeeklyMaintenanceWindowStartTimeState `json:"start_time"`
}

type MaintenanceScheduleAttributes

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

func (MaintenanceScheduleAttributes) EndTime

func (MaintenanceScheduleAttributes) InternalRef

func (ms MaintenanceScheduleAttributes) InternalRef() (terra.Reference, error)

func (MaintenanceScheduleAttributes) InternalTokens

func (ms MaintenanceScheduleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaintenanceScheduleAttributes) InternalWithRef

func (MaintenanceScheduleAttributes) ScheduleDeadlineTime

func (ms MaintenanceScheduleAttributes) ScheduleDeadlineTime() terra.StringValue

func (MaintenanceScheduleAttributes) StartTime

type MaintenanceScheduleState

type MaintenanceScheduleState struct {
	EndTime              string `json:"end_time"`
	ScheduleDeadlineTime string `json:"schedule_deadline_time"`
	StartTime            string `json:"start_time"`
}

type NodesAttributes

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

func (NodesAttributes) Id

func (NodesAttributes) InternalRef

func (n NodesAttributes) InternalRef() (terra.Reference, error)

func (NodesAttributes) InternalTokens

func (n NodesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (NodesAttributes) InternalWithRef

func (n NodesAttributes) InternalWithRef(ref terra.Reference) NodesAttributes

func (NodesAttributes) Zone

type NodesState

type NodesState struct {
	Id   string `json:"id"`
	Zone string `json:"zone"`
}

type PersistenceConfig

type PersistenceConfig struct {
	// PersistenceMode: string, optional
	PersistenceMode terra.StringValue `hcl:"persistence_mode,attr"`
	// RdbSnapshotPeriod: string, optional
	RdbSnapshotPeriod terra.StringValue `hcl:"rdb_snapshot_period,attr"`
	// RdbSnapshotStartTime: string, optional
	RdbSnapshotStartTime terra.StringValue `hcl:"rdb_snapshot_start_time,attr"`
}

type PersistenceConfigAttributes

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

func (PersistenceConfigAttributes) InternalRef

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

func (PersistenceConfigAttributes) InternalTokens

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

func (PersistenceConfigAttributes) InternalWithRef

func (PersistenceConfigAttributes) PersistenceMode

func (pc PersistenceConfigAttributes) PersistenceMode() terra.StringValue

func (PersistenceConfigAttributes) RdbNextSnapshotTime

func (pc PersistenceConfigAttributes) RdbNextSnapshotTime() terra.StringValue

func (PersistenceConfigAttributes) RdbSnapshotPeriod

func (pc PersistenceConfigAttributes) RdbSnapshotPeriod() terra.StringValue

func (PersistenceConfigAttributes) RdbSnapshotStartTime

func (pc PersistenceConfigAttributes) RdbSnapshotStartTime() terra.StringValue

type PersistenceConfigState

type PersistenceConfigState struct {
	PersistenceMode      string `json:"persistence_mode"`
	RdbNextSnapshotTime  string `json:"rdb_next_snapshot_time"`
	RdbSnapshotPeriod    string `json:"rdb_snapshot_period"`
	RdbSnapshotStartTime string `json:"rdb_snapshot_start_time"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gri *Resource) Attributes() googleRedisInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gri *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gri *Resource) State() (*googleRedisInstanceState, bool)

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

func (*Resource) StateMust

func (gri *Resource) StateMust() *googleRedisInstanceState

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

func (*Resource) Type

func (gri *Resource) Type() string

Type returns the Terraform object type for Resource.

type ServerCaCertsAttributes

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

func (ServerCaCertsAttributes) Cert

func (ServerCaCertsAttributes) CreateTime

func (scc ServerCaCertsAttributes) CreateTime() terra.StringValue

func (ServerCaCertsAttributes) ExpireTime

func (scc ServerCaCertsAttributes) ExpireTime() terra.StringValue

func (ServerCaCertsAttributes) InternalRef

func (scc ServerCaCertsAttributes) InternalRef() (terra.Reference, error)

func (ServerCaCertsAttributes) InternalTokens

func (scc ServerCaCertsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServerCaCertsAttributes) InternalWithRef

func (ServerCaCertsAttributes) SerialNumber

func (scc ServerCaCertsAttributes) SerialNumber() terra.StringValue

func (ServerCaCertsAttributes) Sha1Fingerprint

func (scc ServerCaCertsAttributes) Sha1Fingerprint() terra.StringValue

type ServerCaCertsState

type ServerCaCertsState struct {
	Cert            string `json:"cert"`
	CreateTime      string `json:"create_time"`
	ExpireTime      string `json:"expire_time"`
	SerialNumber    string `json:"serial_number"`
	Sha1Fingerprint string `json:"sha1_fingerprint"`
}

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