Documentation ¶
Index ¶
- Variables
- func NewMaintenanceWindowStructValidator() *maintenanceWindowStructValidator
- func NewPostgreSQLClusterResourceBeta() resource.Resource
- func RetryListPGHosts(ctx context.Context, sdk *ycsdk.SDK, diag *diag.Diagnostics, cid string) ([]*postgresql.Host, error)
- type Access
- type BackupWindowStart
- type Cluster
- type Config
- type Host
- type MaintenanceWindow
- type PerformanceDiagnostics
- type Resources
Constants ¶
This section is empty.
Variables ¶
View Source
var AccessAttrTypes = map[string]attr.Type{ "data_lens": types.BoolType, "web_sql": types.BoolType, "serverless": types.BoolType, "data_transfer": types.BoolType, }
View Source
var BackupWindowStartAttrTypes = map[string]attr.Type{ "hours": types.Int64Type, "minutes": types.Int64Type, }
View Source
var ConfigAttrTypes = map[string]attr.Type{ "version": types.StringType, "resources": types.ObjectType{AttrTypes: ResourcesAttrTypes}, "autofailover": types.BoolType, "access": types.ObjectType{AttrTypes: AccessAttrTypes}, "performance_diagnostics": types.ObjectType{AttrTypes: PerformanceDiagnosticsAttrTypes}, "backup_retain_period_days": types.Int64Type, "backup_window_start": types.ObjectType{AttrTypes: BackupWindowStartAttrTypes}, }
View Source
var MaintenanceWindowAttrTypes = map[string]attr.Type{ "type": types.StringType, "day": types.StringType, "hour": types.Int64Type, }
View Source
var PerformanceDiagnosticsAttrTypes = map[string]attr.Type{ "enabled": types.BoolType, "sessions_sampling_interval": types.Int64Type, "statements_sampling_interval": types.Int64Type, }
View Source
var ResourcesAttrTypes = map[string]attr.Type{ "resource_preset_id": types.StringType, "disk_size": types.Int64Type, "disk_type_id": types.StringType, }
Functions ¶
func NewMaintenanceWindowStructValidator ¶
func NewMaintenanceWindowStructValidator() *maintenanceWindowStructValidator
func RetryListPGHosts ¶
func RetryListPGHosts(ctx context.Context, sdk *ycsdk.SDK, diag *diag.Diagnostics, cid string) ([]*postgresql.Host, error)
retry with 1, 2, 4, 8, 16, 32, 64, 128 seconds if no succeess while at least one host is unknown and there is no master
Types ¶
type BackupWindowStart ¶
type Cluster ¶
type Cluster struct { Id types.String `tfsdk:"id"` FolderId types.String `tfsdk:"folder_id"` NetworkId types.String `tfsdk:"network_id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` Environment types.String `tfsdk:"environment"` Labels types.Map `tfsdk:"labels"` Config types.Object `tfsdk:"config"` HostSpecs types.Map `tfsdk:"hosts"` MaintenanceWindow types.Object `tfsdk:"maintenance_window"` DeletionProtection types.Bool `tfsdk:"deletion_protection"` SecurityGroupIds types.Set `tfsdk:"security_group_ids"` }
type Config ¶
type Config struct { Version types.String `tfsdk:"version"` Resources types.Object `tfsdk:"resources"` Autofailover types.Bool `tfsdk:"autofailover"` Access types.Object `tfsdk:"access"` PerformanceDiagnostics types.Object `tfsdk:"performance_diagnostics"` BackupRetainPeriodDays types.Int64 `tfsdk:"backup_retain_period_days"` BackupWindowStart types.Object `tfsdk:"backup_window_start"` }
type MaintenanceWindow ¶
type PerformanceDiagnostics ¶
Click to show internal directories.
Click to hide internal directories.