google_sql_database_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 {
	// DatabaseVersion: string, required
	DatabaseVersion terra.StringValue `hcl:"database_version,attr" validate:"required"`
	// DeletionProtection: bool, optional
	DeletionProtection terra.BoolValue `hcl:"deletion_protection,attr"`
	// EncryptionKeyName: string, optional
	EncryptionKeyName terra.StringValue `hcl:"encryption_key_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceType: string, optional
	InstanceType terra.StringValue `hcl:"instance_type,attr"`
	// MaintenanceVersion: string, optional
	MaintenanceVersion terra.StringValue `hcl:"maintenance_version,attr"`
	// MasterInstanceName: string, optional
	MasterInstanceName terra.StringValue `hcl:"master_instance_name,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
	// Region: string, optional
	Region terra.StringValue `hcl:"region,attr"`
	// RootPassword: string, optional
	RootPassword terra.StringValue `hcl:"root_password,attr"`
	// Clone: optional
	Clone *Clone `hcl:"clone,block"`
	// ReplicaConfiguration: optional
	ReplicaConfiguration *ReplicaConfiguration `hcl:"replica_configuration,block"`
	// RestoreBackupContext: optional
	RestoreBackupContext *RestoreBackupContext `hcl:"restore_backup_context,block"`
	// Settings: optional
	Settings *Settings `hcl:"settings,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_sql_database_instance.

type Clone

type Clone struct {
	// AllocatedIpRange: string, optional
	AllocatedIpRange terra.StringValue `hcl:"allocated_ip_range,attr"`
	// DatabaseNames: list of string, optional
	DatabaseNames terra.ListValue[terra.StringValue] `hcl:"database_names,attr"`
	// PointInTime: string, optional
	PointInTime terra.StringValue `hcl:"point_in_time,attr"`
	// PreferredZone: string, optional
	PreferredZone terra.StringValue `hcl:"preferred_zone,attr"`
	// SourceInstanceName: string, required
	SourceInstanceName terra.StringValue `hcl:"source_instance_name,attr" validate:"required"`
}

type CloneAttributes

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

func (CloneAttributes) AllocatedIpRange

func (c CloneAttributes) AllocatedIpRange() terra.StringValue

func (CloneAttributes) DatabaseNames

func (c CloneAttributes) DatabaseNames() terra.ListValue[terra.StringValue]

func (CloneAttributes) InternalRef

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

func (CloneAttributes) InternalTokens

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

func (CloneAttributes) InternalWithRef

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

func (CloneAttributes) PointInTime

func (c CloneAttributes) PointInTime() terra.StringValue

func (CloneAttributes) PreferredZone

func (c CloneAttributes) PreferredZone() terra.StringValue

func (CloneAttributes) SourceInstanceName

func (c CloneAttributes) SourceInstanceName() terra.StringValue

type CloneState

type CloneState struct {
	AllocatedIpRange   string   `json:"allocated_ip_range"`
	DatabaseNames      []string `json:"database_names"`
	PointInTime        string   `json:"point_in_time"`
	PreferredZone      string   `json:"preferred_zone"`
	SourceInstanceName string   `json:"source_instance_name"`
}

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"`
}

DataArgs contains the configurations for google_sql_database_instance.

type DataCloneAttributes

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

func (DataCloneAttributes) AllocatedIpRange

func (c DataCloneAttributes) AllocatedIpRange() terra.StringValue

func (DataCloneAttributes) DatabaseNames

func (DataCloneAttributes) InternalRef

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

func (DataCloneAttributes) InternalTokens

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

func (DataCloneAttributes) InternalWithRef

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

func (DataCloneAttributes) PointInTime

func (c DataCloneAttributes) PointInTime() terra.StringValue

func (DataCloneAttributes) PreferredZone

func (c DataCloneAttributes) PreferredZone() terra.StringValue

func (DataCloneAttributes) SourceInstanceName

func (c DataCloneAttributes) SourceInstanceName() terra.StringValue

type DataCloneState

type DataCloneState struct {
	AllocatedIpRange   string   `json:"allocated_ip_range"`
	DatabaseNames      []string `json:"database_names"`
	PointInTime        string   `json:"point_in_time"`
	PreferredZone      string   `json:"preferred_zone"`
	SourceInstanceName string   `json:"source_instance_name"`
}

type DataIpAddressAttributes

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

func (DataIpAddressAttributes) InternalRef

func (ia DataIpAddressAttributes) InternalRef() (terra.Reference, error)

func (DataIpAddressAttributes) InternalTokens

func (ia DataIpAddressAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataIpAddressAttributes) InternalWithRef

func (DataIpAddressAttributes) IpAddress

func (ia DataIpAddressAttributes) IpAddress() terra.StringValue

func (DataIpAddressAttributes) TimeToRetire

func (ia DataIpAddressAttributes) TimeToRetire() terra.StringValue

func (DataIpAddressAttributes) Type

type DataIpAddressState

type DataIpAddressState struct {
	IpAddress    string `json:"ip_address"`
	TimeToRetire string `json:"time_to_retire"`
	Type         string `json:"type"`
}

type DataReplicaConfigurationAttributes

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

func (DataReplicaConfigurationAttributes) CaCertificate

func (DataReplicaConfigurationAttributes) ClientCertificate

func (rc DataReplicaConfigurationAttributes) ClientCertificate() terra.StringValue

func (DataReplicaConfigurationAttributes) ClientKey

func (DataReplicaConfigurationAttributes) ConnectRetryInterval

func (rc DataReplicaConfigurationAttributes) ConnectRetryInterval() terra.NumberValue

func (DataReplicaConfigurationAttributes) DumpFilePath

func (DataReplicaConfigurationAttributes) FailoverTarget

func (DataReplicaConfigurationAttributes) InternalRef

func (DataReplicaConfigurationAttributes) InternalTokens

func (DataReplicaConfigurationAttributes) InternalWithRef

func (DataReplicaConfigurationAttributes) MasterHeartbeatPeriod

func (rc DataReplicaConfigurationAttributes) MasterHeartbeatPeriod() terra.NumberValue

func (DataReplicaConfigurationAttributes) Password

func (DataReplicaConfigurationAttributes) SslCipher

func (DataReplicaConfigurationAttributes) Username

func (DataReplicaConfigurationAttributes) VerifyServerCertificate

func (rc DataReplicaConfigurationAttributes) VerifyServerCertificate() terra.BoolValue

type DataReplicaConfigurationState

type DataReplicaConfigurationState struct {
	CaCertificate           string  `json:"ca_certificate"`
	ClientCertificate       string  `json:"client_certificate"`
	ClientKey               string  `json:"client_key"`
	ConnectRetryInterval    float64 `json:"connect_retry_interval"`
	DumpFilePath            string  `json:"dump_file_path"`
	FailoverTarget          bool    `json:"failover_target"`
	MasterHeartbeatPeriod   float64 `json:"master_heartbeat_period"`
	Password                string  `json:"password"`
	SslCipher               string  `json:"ssl_cipher"`
	Username                string  `json:"username"`
	VerifyServerCertificate bool    `json:"verify_server_certificate"`
}

type DataRestoreBackupContextAttributes

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

func (DataRestoreBackupContextAttributes) BackupRunId

func (DataRestoreBackupContextAttributes) InstanceId

func (DataRestoreBackupContextAttributes) InternalRef

func (DataRestoreBackupContextAttributes) InternalTokens

func (rbc DataRestoreBackupContextAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataRestoreBackupContextAttributes) InternalWithRef

func (DataRestoreBackupContextAttributes) Project

type DataRestoreBackupContextState

type DataRestoreBackupContextState struct {
	BackupRunId float64 `json:"backup_run_id"`
	InstanceId  string  `json:"instance_id"`
	Project     string  `json:"project"`
}

type DataServerCaCertAttributes

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

func (DataServerCaCertAttributes) Cert

func (DataServerCaCertAttributes) CommonName

func (scc DataServerCaCertAttributes) CommonName() terra.StringValue

func (DataServerCaCertAttributes) CreateTime

func (scc DataServerCaCertAttributes) CreateTime() terra.StringValue

func (DataServerCaCertAttributes) ExpirationTime

func (scc DataServerCaCertAttributes) ExpirationTime() terra.StringValue

func (DataServerCaCertAttributes) InternalRef

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

func (DataServerCaCertAttributes) InternalTokens

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

func (DataServerCaCertAttributes) InternalWithRef

func (DataServerCaCertAttributes) Sha1Fingerprint

func (scc DataServerCaCertAttributes) Sha1Fingerprint() terra.StringValue

type DataServerCaCertState

type DataServerCaCertState struct {
	Cert            string `json:"cert"`
	CommonName      string `json:"common_name"`
	CreateTime      string `json:"create_time"`
	ExpirationTime  string `json:"expiration_time"`
	Sha1Fingerprint string `json:"sha1_fingerprint"`
}

type DataSettingsActiveDirectoryConfigAttributes

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

func (DataSettingsActiveDirectoryConfigAttributes) Domain

func (DataSettingsActiveDirectoryConfigAttributes) InternalRef

func (DataSettingsActiveDirectoryConfigAttributes) InternalTokens

func (DataSettingsActiveDirectoryConfigAttributes) InternalWithRef

type DataSettingsActiveDirectoryConfigState

type DataSettingsActiveDirectoryConfigState struct {
	Domain string `json:"domain"`
}

type DataSettingsAdvancedMachineFeaturesAttributes

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

func (DataSettingsAdvancedMachineFeaturesAttributes) InternalRef

func (DataSettingsAdvancedMachineFeaturesAttributes) InternalTokens

func (DataSettingsAdvancedMachineFeaturesAttributes) InternalWithRef

func (DataSettingsAdvancedMachineFeaturesAttributes) ThreadsPerCore

type DataSettingsAdvancedMachineFeaturesState

type DataSettingsAdvancedMachineFeaturesState struct {
	ThreadsPerCore float64 `json:"threads_per_core"`
}

type DataSettingsAttributes

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

func (DataSettingsAttributes) ActivationPolicy

func (s DataSettingsAttributes) ActivationPolicy() terra.StringValue

func (DataSettingsAttributes) ActiveDirectoryConfig

func (DataSettingsAttributes) AdvancedMachineFeatures

func (DataSettingsAttributes) AvailabilityType

func (s DataSettingsAttributes) AvailabilityType() terra.StringValue

func (DataSettingsAttributes) BackupConfiguration

func (DataSettingsAttributes) Collation

func (DataSettingsAttributes) ConnectorEnforcement

func (s DataSettingsAttributes) ConnectorEnforcement() terra.StringValue

func (DataSettingsAttributes) DataCacheConfig

func (DataSettingsAttributes) DatabaseFlags

func (DataSettingsAttributes) DeletionProtectionEnabled

func (s DataSettingsAttributes) DeletionProtectionEnabled() terra.BoolValue

func (DataSettingsAttributes) DenyMaintenancePeriod

func (DataSettingsAttributes) DiskAutoresize

func (s DataSettingsAttributes) DiskAutoresize() terra.BoolValue

func (DataSettingsAttributes) DiskAutoresizeLimit

func (s DataSettingsAttributes) DiskAutoresizeLimit() terra.NumberValue

func (DataSettingsAttributes) DiskSize

func (DataSettingsAttributes) DiskType

func (DataSettingsAttributes) Edition

func (DataSettingsAttributes) EnableGoogleMlIntegration

func (s DataSettingsAttributes) EnableGoogleMlIntegration() terra.BoolValue

func (DataSettingsAttributes) InsightsConfig

func (DataSettingsAttributes) InternalRef

func (s DataSettingsAttributes) InternalRef() (terra.Reference, error)

func (DataSettingsAttributes) InternalTokens

func (s DataSettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataSettingsAttributes) InternalWithRef

func (DataSettingsAttributes) IpConfiguration

func (DataSettingsAttributes) LocationPreference

func (DataSettingsAttributes) MaintenanceWindow

func (DataSettingsAttributes) PasswordValidationPolicy

func (DataSettingsAttributes) PricingPlan

func (s DataSettingsAttributes) PricingPlan() terra.StringValue

func (DataSettingsAttributes) SqlServerAuditConfig

func (DataSettingsAttributes) Tier

func (DataSettingsAttributes) TimeZone

func (DataSettingsAttributes) UserLabels

func (DataSettingsAttributes) Version

type DataSettingsBackupConfigurationAttributes

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

func (DataSettingsBackupConfigurationAttributes) BinaryLogEnabled

func (DataSettingsBackupConfigurationAttributes) Enabled

func (DataSettingsBackupConfigurationAttributes) InternalRef

func (DataSettingsBackupConfigurationAttributes) InternalTokens

func (DataSettingsBackupConfigurationAttributes) InternalWithRef

func (DataSettingsBackupConfigurationAttributes) Location

func (DataSettingsBackupConfigurationAttributes) PointInTimeRecoveryEnabled

func (bc DataSettingsBackupConfigurationAttributes) PointInTimeRecoveryEnabled() terra.BoolValue

func (DataSettingsBackupConfigurationAttributes) StartTime

func (DataSettingsBackupConfigurationAttributes) TransactionLogRetentionDays

func (bc DataSettingsBackupConfigurationAttributes) TransactionLogRetentionDays() terra.NumberValue

type DataSettingsBackupConfigurationBackupRetentionSettingsAttributes

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

func (DataSettingsBackupConfigurationBackupRetentionSettingsAttributes) InternalRef

func (DataSettingsBackupConfigurationBackupRetentionSettingsAttributes) InternalTokens

func (DataSettingsBackupConfigurationBackupRetentionSettingsAttributes) InternalWithRef

func (DataSettingsBackupConfigurationBackupRetentionSettingsAttributes) RetainedBackups

func (DataSettingsBackupConfigurationBackupRetentionSettingsAttributes) RetentionUnit

type DataSettingsBackupConfigurationBackupRetentionSettingsState

type DataSettingsBackupConfigurationBackupRetentionSettingsState struct {
	RetainedBackups float64 `json:"retained_backups"`
	RetentionUnit   string  `json:"retention_unit"`
}

type DataSettingsBackupConfigurationState

type DataSettingsBackupConfigurationState struct {
	BinaryLogEnabled            bool                                                          `json:"binary_log_enabled"`
	Enabled                     bool                                                          `json:"enabled"`
	Location                    string                                                        `json:"location"`
	PointInTimeRecoveryEnabled  bool                                                          `json:"point_in_time_recovery_enabled"`
	StartTime                   string                                                        `json:"start_time"`
	TransactionLogRetentionDays float64                                                       `json:"transaction_log_retention_days"`
	BackupRetentionSettings     []DataSettingsBackupConfigurationBackupRetentionSettingsState `json:"backup_retention_settings"`
}

type DataSettingsDataCacheConfigAttributes

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

func (DataSettingsDataCacheConfigAttributes) DataCacheEnabled

func (dcc DataSettingsDataCacheConfigAttributes) DataCacheEnabled() terra.BoolValue

func (DataSettingsDataCacheConfigAttributes) InternalRef

func (DataSettingsDataCacheConfigAttributes) InternalTokens

func (DataSettingsDataCacheConfigAttributes) InternalWithRef

type DataSettingsDataCacheConfigState

type DataSettingsDataCacheConfigState struct {
	DataCacheEnabled bool `json:"data_cache_enabled"`
}

type DataSettingsDatabaseFlagsAttributes

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

func (DataSettingsDatabaseFlagsAttributes) InternalRef

func (DataSettingsDatabaseFlagsAttributes) InternalTokens

func (DataSettingsDatabaseFlagsAttributes) InternalWithRef

func (DataSettingsDatabaseFlagsAttributes) Name

func (DataSettingsDatabaseFlagsAttributes) Value

type DataSettingsDatabaseFlagsState

type DataSettingsDatabaseFlagsState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type DataSettingsDenyMaintenancePeriodAttributes

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

func (DataSettingsDenyMaintenancePeriodAttributes) EndDate

func (DataSettingsDenyMaintenancePeriodAttributes) InternalRef

func (DataSettingsDenyMaintenancePeriodAttributes) InternalTokens

func (DataSettingsDenyMaintenancePeriodAttributes) InternalWithRef

func (DataSettingsDenyMaintenancePeriodAttributes) StartDate

func (DataSettingsDenyMaintenancePeriodAttributes) Time

type DataSettingsDenyMaintenancePeriodState

type DataSettingsDenyMaintenancePeriodState struct {
	EndDate   string `json:"end_date"`
	StartDate string `json:"start_date"`
	Time      string `json:"time"`
}

type DataSettingsInsightsConfigAttributes

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

func (DataSettingsInsightsConfigAttributes) InternalRef

func (DataSettingsInsightsConfigAttributes) InternalTokens

func (DataSettingsInsightsConfigAttributes) InternalWithRef

func (DataSettingsInsightsConfigAttributes) QueryInsightsEnabled

func (ic DataSettingsInsightsConfigAttributes) QueryInsightsEnabled() terra.BoolValue

func (DataSettingsInsightsConfigAttributes) QueryPlansPerMinute

func (ic DataSettingsInsightsConfigAttributes) QueryPlansPerMinute() terra.NumberValue

func (DataSettingsInsightsConfigAttributes) QueryStringLength

func (DataSettingsInsightsConfigAttributes) RecordApplicationTags

func (ic DataSettingsInsightsConfigAttributes) RecordApplicationTags() terra.BoolValue

func (DataSettingsInsightsConfigAttributes) RecordClientAddress

func (ic DataSettingsInsightsConfigAttributes) RecordClientAddress() terra.BoolValue

type DataSettingsInsightsConfigState

type DataSettingsInsightsConfigState struct {
	QueryInsightsEnabled  bool    `json:"query_insights_enabled"`
	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 DataSettingsIpConfigurationAttributes

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

func (DataSettingsIpConfigurationAttributes) AllocatedIpRange

func (DataSettingsIpConfigurationAttributes) AuthorizedNetworks

func (DataSettingsIpConfigurationAttributes) EnablePrivatePathForGoogleCloudServices

func (ic DataSettingsIpConfigurationAttributes) EnablePrivatePathForGoogleCloudServices() terra.BoolValue

func (DataSettingsIpConfigurationAttributes) InternalRef

func (DataSettingsIpConfigurationAttributes) InternalTokens

func (DataSettingsIpConfigurationAttributes) InternalWithRef

func (DataSettingsIpConfigurationAttributes) Ipv4Enabled

func (DataSettingsIpConfigurationAttributes) PrivateNetwork

func (DataSettingsIpConfigurationAttributes) PscConfig

func (DataSettingsIpConfigurationAttributes) RequireSsl

func (DataSettingsIpConfigurationAttributes) SslMode

type DataSettingsIpConfigurationAuthorizedNetworksAttributes

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

func (DataSettingsIpConfigurationAuthorizedNetworksAttributes) ExpirationTime

func (DataSettingsIpConfigurationAuthorizedNetworksAttributes) InternalRef

func (DataSettingsIpConfigurationAuthorizedNetworksAttributes) InternalTokens

func (DataSettingsIpConfigurationAuthorizedNetworksAttributes) InternalWithRef

func (DataSettingsIpConfigurationAuthorizedNetworksAttributes) Name

func (DataSettingsIpConfigurationAuthorizedNetworksAttributes) Value

type DataSettingsIpConfigurationAuthorizedNetworksState

type DataSettingsIpConfigurationAuthorizedNetworksState struct {
	ExpirationTime string `json:"expiration_time"`
	Name           string `json:"name"`
	Value          string `json:"value"`
}

type DataSettingsIpConfigurationPscConfigAttributes

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

func (DataSettingsIpConfigurationPscConfigAttributes) AllowedConsumerProjects

func (DataSettingsIpConfigurationPscConfigAttributes) InternalRef

func (DataSettingsIpConfigurationPscConfigAttributes) InternalTokens

func (DataSettingsIpConfigurationPscConfigAttributes) InternalWithRef

func (DataSettingsIpConfigurationPscConfigAttributes) PscEnabled

type DataSettingsIpConfigurationPscConfigState

type DataSettingsIpConfigurationPscConfigState struct {
	AllowedConsumerProjects []string `json:"allowed_consumer_projects"`
	PscEnabled              bool     `json:"psc_enabled"`
}

type DataSettingsIpConfigurationState

type DataSettingsIpConfigurationState struct {
	AllocatedIpRange                        string                                               `json:"allocated_ip_range"`
	EnablePrivatePathForGoogleCloudServices bool                                                 `json:"enable_private_path_for_google_cloud_services"`
	Ipv4Enabled                             bool                                                 `json:"ipv4_enabled"`
	PrivateNetwork                          string                                               `json:"private_network"`
	RequireSsl                              bool                                                 `json:"require_ssl"`
	SslMode                                 string                                               `json:"ssl_mode"`
	AuthorizedNetworks                      []DataSettingsIpConfigurationAuthorizedNetworksState `json:"authorized_networks"`
	PscConfig                               []DataSettingsIpConfigurationPscConfigState          `json:"psc_config"`
}

type DataSettingsLocationPreferenceAttributes

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

func (DataSettingsLocationPreferenceAttributes) FollowGaeApplication

func (DataSettingsLocationPreferenceAttributes) InternalRef

func (DataSettingsLocationPreferenceAttributes) InternalTokens

func (DataSettingsLocationPreferenceAttributes) InternalWithRef

func (DataSettingsLocationPreferenceAttributes) SecondaryZone

func (DataSettingsLocationPreferenceAttributes) Zone

type DataSettingsLocationPreferenceState

type DataSettingsLocationPreferenceState struct {
	FollowGaeApplication string `json:"follow_gae_application"`
	SecondaryZone        string `json:"secondary_zone"`
	Zone                 string `json:"zone"`
}

type DataSettingsMaintenanceWindowAttributes

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

func (DataSettingsMaintenanceWindowAttributes) Day

func (DataSettingsMaintenanceWindowAttributes) Hour

func (DataSettingsMaintenanceWindowAttributes) InternalRef

func (DataSettingsMaintenanceWindowAttributes) InternalTokens

func (DataSettingsMaintenanceWindowAttributes) InternalWithRef

func (DataSettingsMaintenanceWindowAttributes) UpdateTrack

type DataSettingsMaintenanceWindowState

type DataSettingsMaintenanceWindowState struct {
	Day         float64 `json:"day"`
	Hour        float64 `json:"hour"`
	UpdateTrack string  `json:"update_track"`
}

type DataSettingsPasswordValidationPolicyAttributes

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

func (DataSettingsPasswordValidationPolicyAttributes) Complexity

func (DataSettingsPasswordValidationPolicyAttributes) DisallowUsernameSubstring

func (pvp DataSettingsPasswordValidationPolicyAttributes) DisallowUsernameSubstring() terra.BoolValue

func (DataSettingsPasswordValidationPolicyAttributes) EnablePasswordPolicy

func (DataSettingsPasswordValidationPolicyAttributes) InternalRef

func (DataSettingsPasswordValidationPolicyAttributes) InternalTokens

func (DataSettingsPasswordValidationPolicyAttributes) InternalWithRef

func (DataSettingsPasswordValidationPolicyAttributes) MinLength

func (DataSettingsPasswordValidationPolicyAttributes) PasswordChangeInterval

func (DataSettingsPasswordValidationPolicyAttributes) ReuseInterval

type DataSettingsPasswordValidationPolicyState

type DataSettingsPasswordValidationPolicyState struct {
	Complexity                string  `json:"complexity"`
	DisallowUsernameSubstring bool    `json:"disallow_username_substring"`
	EnablePasswordPolicy      bool    `json:"enable_password_policy"`
	MinLength                 float64 `json:"min_length"`
	PasswordChangeInterval    string  `json:"password_change_interval"`
	ReuseInterval             float64 `json:"reuse_interval"`
}

type DataSettingsSqlServerAuditConfigAttributes

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

func (DataSettingsSqlServerAuditConfigAttributes) Bucket

func (DataSettingsSqlServerAuditConfigAttributes) InternalRef

func (DataSettingsSqlServerAuditConfigAttributes) InternalTokens

func (DataSettingsSqlServerAuditConfigAttributes) InternalWithRef

func (DataSettingsSqlServerAuditConfigAttributes) RetentionInterval

func (DataSettingsSqlServerAuditConfigAttributes) UploadInterval

type DataSettingsSqlServerAuditConfigState

type DataSettingsSqlServerAuditConfigState struct {
	Bucket            string `json:"bucket"`
	RetentionInterval string `json:"retention_interval"`
	UploadInterval    string `json:"upload_interval"`
}

type DataSettingsState

type DataSettingsState struct {
	ActivationPolicy          string                                      `json:"activation_policy"`
	AvailabilityType          string                                      `json:"availability_type"`
	Collation                 string                                      `json:"collation"`
	ConnectorEnforcement      string                                      `json:"connector_enforcement"`
	DeletionProtectionEnabled bool                                        `json:"deletion_protection_enabled"`
	DiskAutoresize            bool                                        `json:"disk_autoresize"`
	DiskAutoresizeLimit       float64                                     `json:"disk_autoresize_limit"`
	DiskSize                  float64                                     `json:"disk_size"`
	DiskType                  string                                      `json:"disk_type"`
	Edition                   string                                      `json:"edition"`
	EnableGoogleMlIntegration bool                                        `json:"enable_google_ml_integration"`
	PricingPlan               string                                      `json:"pricing_plan"`
	Tier                      string                                      `json:"tier"`
	TimeZone                  string                                      `json:"time_zone"`
	UserLabels                map[string]string                           `json:"user_labels"`
	Version                   float64                                     `json:"version"`
	ActiveDirectoryConfig     []DataSettingsActiveDirectoryConfigState    `json:"active_directory_config"`
	AdvancedMachineFeatures   []DataSettingsAdvancedMachineFeaturesState  `json:"advanced_machine_features"`
	BackupConfiguration       []DataSettingsBackupConfigurationState      `json:"backup_configuration"`
	DataCacheConfig           []DataSettingsDataCacheConfigState          `json:"data_cache_config"`
	DatabaseFlags             []DataSettingsDatabaseFlagsState            `json:"database_flags"`
	DenyMaintenancePeriod     []DataSettingsDenyMaintenancePeriodState    `json:"deny_maintenance_period"`
	InsightsConfig            []DataSettingsInsightsConfigState           `json:"insights_config"`
	IpConfiguration           []DataSettingsIpConfigurationState          `json:"ip_configuration"`
	LocationPreference        []DataSettingsLocationPreferenceState       `json:"location_preference"`
	MaintenanceWindow         []DataSettingsMaintenanceWindowState        `json:"maintenance_window"`
	PasswordValidationPolicy  []DataSettingsPasswordValidationPolicyState `json:"password_validation_policy"`
	SqlServerAuditConfig      []DataSettingsSqlServerAuditConfigState     `json:"sql_server_audit_config"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_sql_database_instance.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gsdi *DataSource) Attributes() dataGoogleSqlDatabaseInstanceAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gsdi *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gsdi *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type IpAddressAttributes

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

func (IpAddressAttributes) InternalRef

func (ia IpAddressAttributes) InternalRef() (terra.Reference, error)

func (IpAddressAttributes) InternalTokens

func (ia IpAddressAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IpAddressAttributes) InternalWithRef

func (ia IpAddressAttributes) InternalWithRef(ref terra.Reference) IpAddressAttributes

func (IpAddressAttributes) IpAddress

func (ia IpAddressAttributes) IpAddress() terra.StringValue

func (IpAddressAttributes) TimeToRetire

func (ia IpAddressAttributes) TimeToRetire() terra.StringValue

func (IpAddressAttributes) Type

type IpAddressState

type IpAddressState struct {
	IpAddress    string `json:"ip_address"`
	TimeToRetire string `json:"time_to_retire"`
	Type         string `json:"type"`
}

type ReplicaConfiguration

type ReplicaConfiguration struct {
	// CaCertificate: string, optional
	CaCertificate terra.StringValue `hcl:"ca_certificate,attr"`
	// ClientCertificate: string, optional
	ClientCertificate terra.StringValue `hcl:"client_certificate,attr"`
	// ClientKey: string, optional
	ClientKey terra.StringValue `hcl:"client_key,attr"`
	// ConnectRetryInterval: number, optional
	ConnectRetryInterval terra.NumberValue `hcl:"connect_retry_interval,attr"`
	// DumpFilePath: string, optional
	DumpFilePath terra.StringValue `hcl:"dump_file_path,attr"`
	// FailoverTarget: bool, optional
	FailoverTarget terra.BoolValue `hcl:"failover_target,attr"`
	// MasterHeartbeatPeriod: number, optional
	MasterHeartbeatPeriod terra.NumberValue `hcl:"master_heartbeat_period,attr"`
	// Password: string, optional
	Password terra.StringValue `hcl:"password,attr"`
	// SslCipher: string, optional
	SslCipher terra.StringValue `hcl:"ssl_cipher,attr"`
	// Username: string, optional
	Username terra.StringValue `hcl:"username,attr"`
	// VerifyServerCertificate: bool, optional
	VerifyServerCertificate terra.BoolValue `hcl:"verify_server_certificate,attr"`
}

type ReplicaConfigurationAttributes

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

func (ReplicaConfigurationAttributes) CaCertificate

func (ReplicaConfigurationAttributes) ClientCertificate

func (rc ReplicaConfigurationAttributes) ClientCertificate() terra.StringValue

func (ReplicaConfigurationAttributes) ClientKey

func (ReplicaConfigurationAttributes) ConnectRetryInterval

func (rc ReplicaConfigurationAttributes) ConnectRetryInterval() terra.NumberValue

func (ReplicaConfigurationAttributes) DumpFilePath

func (ReplicaConfigurationAttributes) FailoverTarget

func (rc ReplicaConfigurationAttributes) FailoverTarget() terra.BoolValue

func (ReplicaConfigurationAttributes) InternalRef

func (ReplicaConfigurationAttributes) InternalTokens

func (rc ReplicaConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReplicaConfigurationAttributes) InternalWithRef

func (ReplicaConfigurationAttributes) MasterHeartbeatPeriod

func (rc ReplicaConfigurationAttributes) MasterHeartbeatPeriod() terra.NumberValue

func (ReplicaConfigurationAttributes) Password

func (ReplicaConfigurationAttributes) SslCipher

func (ReplicaConfigurationAttributes) Username

func (ReplicaConfigurationAttributes) VerifyServerCertificate

func (rc ReplicaConfigurationAttributes) VerifyServerCertificate() terra.BoolValue

type ReplicaConfigurationState

type ReplicaConfigurationState struct {
	CaCertificate           string  `json:"ca_certificate"`
	ClientCertificate       string  `json:"client_certificate"`
	ClientKey               string  `json:"client_key"`
	ConnectRetryInterval    float64 `json:"connect_retry_interval"`
	DumpFilePath            string  `json:"dump_file_path"`
	FailoverTarget          bool    `json:"failover_target"`
	MasterHeartbeatPeriod   float64 `json:"master_heartbeat_period"`
	Password                string  `json:"password"`
	SslCipher               string  `json:"ssl_cipher"`
	Username                string  `json:"username"`
	VerifyServerCertificate bool    `json:"verify_server_certificate"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gsdi *Resource) Attributes() googleSqlDatabaseInstanceAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gsdi *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gsdi *Resource) State() (*googleSqlDatabaseInstanceState, bool)

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

func (*Resource) StateMust

func (gsdi *Resource) StateMust() *googleSqlDatabaseInstanceState

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

func (*Resource) Type

func (gsdi *Resource) Type() string

Type returns the Terraform object type for Resource.

type RestoreBackupContext

type RestoreBackupContext struct {
	// BackupRunId: number, required
	BackupRunId terra.NumberValue `hcl:"backup_run_id,attr" validate:"required"`
	// InstanceId: string, optional
	InstanceId terra.StringValue `hcl:"instance_id,attr"`
	// Project: string, optional
	Project terra.StringValue `hcl:"project,attr"`
}

type RestoreBackupContextAttributes

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

func (RestoreBackupContextAttributes) BackupRunId

func (RestoreBackupContextAttributes) InstanceId

func (RestoreBackupContextAttributes) InternalRef

func (rbc RestoreBackupContextAttributes) InternalRef() (terra.Reference, error)

func (RestoreBackupContextAttributes) InternalTokens

func (rbc RestoreBackupContextAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RestoreBackupContextAttributes) InternalWithRef

func (RestoreBackupContextAttributes) Project

type RestoreBackupContextState

type RestoreBackupContextState struct {
	BackupRunId float64 `json:"backup_run_id"`
	InstanceId  string  `json:"instance_id"`
	Project     string  `json:"project"`
}

type ServerCaCertAttributes

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

func (ServerCaCertAttributes) Cert

func (ServerCaCertAttributes) CommonName

func (scc ServerCaCertAttributes) CommonName() terra.StringValue

func (ServerCaCertAttributes) CreateTime

func (scc ServerCaCertAttributes) CreateTime() terra.StringValue

func (ServerCaCertAttributes) ExpirationTime

func (scc ServerCaCertAttributes) ExpirationTime() terra.StringValue

func (ServerCaCertAttributes) InternalRef

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

func (ServerCaCertAttributes) InternalTokens

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

func (ServerCaCertAttributes) InternalWithRef

func (ServerCaCertAttributes) Sha1Fingerprint

func (scc ServerCaCertAttributes) Sha1Fingerprint() terra.StringValue

type ServerCaCertState

type ServerCaCertState struct {
	Cert            string `json:"cert"`
	CommonName      string `json:"common_name"`
	CreateTime      string `json:"create_time"`
	ExpirationTime  string `json:"expiration_time"`
	Sha1Fingerprint string `json:"sha1_fingerprint"`
}

type Settings

type Settings struct {
	// ActivationPolicy: string, optional
	ActivationPolicy terra.StringValue `hcl:"activation_policy,attr"`
	// AvailabilityType: string, optional
	AvailabilityType terra.StringValue `hcl:"availability_type,attr"`
	// Collation: string, optional
	Collation terra.StringValue `hcl:"collation,attr"`
	// ConnectorEnforcement: string, optional
	ConnectorEnforcement terra.StringValue `hcl:"connector_enforcement,attr"`
	// DeletionProtectionEnabled: bool, optional
	DeletionProtectionEnabled terra.BoolValue `hcl:"deletion_protection_enabled,attr"`
	// DiskAutoresize: bool, optional
	DiskAutoresize terra.BoolValue `hcl:"disk_autoresize,attr"`
	// DiskAutoresizeLimit: number, optional
	DiskAutoresizeLimit terra.NumberValue `hcl:"disk_autoresize_limit,attr"`
	// DiskSize: number, optional
	DiskSize terra.NumberValue `hcl:"disk_size,attr"`
	// DiskType: string, optional
	DiskType terra.StringValue `hcl:"disk_type,attr"`
	// Edition: string, optional
	Edition terra.StringValue `hcl:"edition,attr"`
	// EnableGoogleMlIntegration: bool, optional
	EnableGoogleMlIntegration terra.BoolValue `hcl:"enable_google_ml_integration,attr"`
	// PricingPlan: string, optional
	PricingPlan terra.StringValue `hcl:"pricing_plan,attr"`
	// Tier: string, required
	Tier terra.StringValue `hcl:"tier,attr" validate:"required"`
	// TimeZone: string, optional
	TimeZone terra.StringValue `hcl:"time_zone,attr"`
	// UserLabels: map of string, optional
	UserLabels terra.MapValue[terra.StringValue] `hcl:"user_labels,attr"`
	// SettingsActiveDirectoryConfig: optional
	ActiveDirectoryConfig *SettingsActiveDirectoryConfig `hcl:"active_directory_config,block"`
	// SettingsAdvancedMachineFeatures: optional
	AdvancedMachineFeatures *SettingsAdvancedMachineFeatures `hcl:"advanced_machine_features,block"`
	// SettingsBackupConfiguration: optional
	BackupConfiguration *SettingsBackupConfiguration `hcl:"backup_configuration,block"`
	// SettingsDataCacheConfig: optional
	DataCacheConfig *SettingsDataCacheConfig `hcl:"data_cache_config,block"`
	// SettingsDatabaseFlags: min=0
	DatabaseFlags []SettingsDatabaseFlags `hcl:"database_flags,block" validate:"min=0"`
	// SettingsDenyMaintenancePeriod: optional
	DenyMaintenancePeriod *SettingsDenyMaintenancePeriod `hcl:"deny_maintenance_period,block"`
	// SettingsInsightsConfig: optional
	InsightsConfig *SettingsInsightsConfig `hcl:"insights_config,block"`
	// SettingsIpConfiguration: optional
	IpConfiguration *SettingsIpConfiguration `hcl:"ip_configuration,block"`
	// SettingsLocationPreference: optional
	LocationPreference *SettingsLocationPreference `hcl:"location_preference,block"`
	// SettingsMaintenanceWindow: optional
	MaintenanceWindow *SettingsMaintenanceWindow `hcl:"maintenance_window,block"`
	// SettingsPasswordValidationPolicy: optional
	PasswordValidationPolicy *SettingsPasswordValidationPolicy `hcl:"password_validation_policy,block"`
	// SettingsSqlServerAuditConfig: optional
	SqlServerAuditConfig *SettingsSqlServerAuditConfig `hcl:"sql_server_audit_config,block"`
}

type SettingsActiveDirectoryConfig

type SettingsActiveDirectoryConfig struct {
	// Domain: string, required
	Domain terra.StringValue `hcl:"domain,attr" validate:"required"`
}

type SettingsActiveDirectoryConfigAttributes

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

func (SettingsActiveDirectoryConfigAttributes) Domain

func (SettingsActiveDirectoryConfigAttributes) InternalRef

func (SettingsActiveDirectoryConfigAttributes) InternalTokens

func (SettingsActiveDirectoryConfigAttributes) InternalWithRef

type SettingsActiveDirectoryConfigState

type SettingsActiveDirectoryConfigState struct {
	Domain string `json:"domain"`
}

type SettingsAdvancedMachineFeatures

type SettingsAdvancedMachineFeatures struct {
	// ThreadsPerCore: number, optional
	ThreadsPerCore terra.NumberValue `hcl:"threads_per_core,attr"`
}

type SettingsAdvancedMachineFeaturesAttributes

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

func (SettingsAdvancedMachineFeaturesAttributes) InternalRef

func (SettingsAdvancedMachineFeaturesAttributes) InternalTokens

func (SettingsAdvancedMachineFeaturesAttributes) InternalWithRef

func (SettingsAdvancedMachineFeaturesAttributes) ThreadsPerCore

type SettingsAdvancedMachineFeaturesState

type SettingsAdvancedMachineFeaturesState struct {
	ThreadsPerCore float64 `json:"threads_per_core"`
}

type SettingsAttributes

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

func (SettingsAttributes) ActivationPolicy

func (s SettingsAttributes) ActivationPolicy() terra.StringValue

func (SettingsAttributes) ActiveDirectoryConfig

func (SettingsAttributes) AdvancedMachineFeatures

func (SettingsAttributes) AvailabilityType

func (s SettingsAttributes) AvailabilityType() terra.StringValue

func (SettingsAttributes) BackupConfiguration

func (SettingsAttributes) Collation

func (s SettingsAttributes) Collation() terra.StringValue

func (SettingsAttributes) ConnectorEnforcement

func (s SettingsAttributes) ConnectorEnforcement() terra.StringValue

func (SettingsAttributes) DataCacheConfig

func (SettingsAttributes) DatabaseFlags

func (SettingsAttributes) DeletionProtectionEnabled

func (s SettingsAttributes) DeletionProtectionEnabled() terra.BoolValue

func (SettingsAttributes) DenyMaintenancePeriod

func (SettingsAttributes) DiskAutoresize

func (s SettingsAttributes) DiskAutoresize() terra.BoolValue

func (SettingsAttributes) DiskAutoresizeLimit

func (s SettingsAttributes) DiskAutoresizeLimit() terra.NumberValue

func (SettingsAttributes) DiskSize

func (s SettingsAttributes) DiskSize() terra.NumberValue

func (SettingsAttributes) DiskType

func (s SettingsAttributes) DiskType() terra.StringValue

func (SettingsAttributes) Edition

func (s SettingsAttributes) Edition() terra.StringValue

func (SettingsAttributes) EnableGoogleMlIntegration

func (s SettingsAttributes) EnableGoogleMlIntegration() terra.BoolValue

func (SettingsAttributes) InsightsConfig

func (SettingsAttributes) InternalRef

func (s SettingsAttributes) InternalRef() (terra.Reference, error)

func (SettingsAttributes) InternalTokens

func (s SettingsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SettingsAttributes) InternalWithRef

func (s SettingsAttributes) InternalWithRef(ref terra.Reference) SettingsAttributes

func (SettingsAttributes) IpConfiguration

func (SettingsAttributes) LocationPreference

func (SettingsAttributes) MaintenanceWindow

func (SettingsAttributes) PasswordValidationPolicy

func (SettingsAttributes) PricingPlan

func (s SettingsAttributes) PricingPlan() terra.StringValue

func (SettingsAttributes) SqlServerAuditConfig

func (SettingsAttributes) Tier

func (SettingsAttributes) TimeZone

func (s SettingsAttributes) TimeZone() terra.StringValue

func (SettingsAttributes) UserLabels

func (SettingsAttributes) Version

func (s SettingsAttributes) Version() terra.NumberValue

type SettingsBackupConfiguration

type SettingsBackupConfiguration struct {
	// BinaryLogEnabled: bool, optional
	BinaryLogEnabled terra.BoolValue `hcl:"binary_log_enabled,attr"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// PointInTimeRecoveryEnabled: bool, optional
	PointInTimeRecoveryEnabled terra.BoolValue `hcl:"point_in_time_recovery_enabled,attr"`
	// StartTime: string, optional
	StartTime terra.StringValue `hcl:"start_time,attr"`
	// TransactionLogRetentionDays: number, optional
	TransactionLogRetentionDays terra.NumberValue `hcl:"transaction_log_retention_days,attr"`
	// SettingsBackupConfigurationBackupRetentionSettings: optional
	BackupRetentionSettings *SettingsBackupConfigurationBackupRetentionSettings `hcl:"backup_retention_settings,block"`
}

type SettingsBackupConfigurationAttributes

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

func (SettingsBackupConfigurationAttributes) BinaryLogEnabled

func (SettingsBackupConfigurationAttributes) Enabled

func (SettingsBackupConfigurationAttributes) InternalRef

func (SettingsBackupConfigurationAttributes) InternalTokens

func (SettingsBackupConfigurationAttributes) InternalWithRef

func (SettingsBackupConfigurationAttributes) Location

func (SettingsBackupConfigurationAttributes) PointInTimeRecoveryEnabled

func (bc SettingsBackupConfigurationAttributes) PointInTimeRecoveryEnabled() terra.BoolValue

func (SettingsBackupConfigurationAttributes) StartTime

func (SettingsBackupConfigurationAttributes) TransactionLogRetentionDays

func (bc SettingsBackupConfigurationAttributes) TransactionLogRetentionDays() terra.NumberValue

type SettingsBackupConfigurationBackupRetentionSettings

type SettingsBackupConfigurationBackupRetentionSettings struct {
	// RetainedBackups: number, required
	RetainedBackups terra.NumberValue `hcl:"retained_backups,attr" validate:"required"`
	// RetentionUnit: string, optional
	RetentionUnit terra.StringValue `hcl:"retention_unit,attr"`
}

type SettingsBackupConfigurationBackupRetentionSettingsAttributes

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

func (SettingsBackupConfigurationBackupRetentionSettingsAttributes) InternalRef

func (SettingsBackupConfigurationBackupRetentionSettingsAttributes) InternalTokens

func (SettingsBackupConfigurationBackupRetentionSettingsAttributes) InternalWithRef

func (SettingsBackupConfigurationBackupRetentionSettingsAttributes) RetainedBackups

func (SettingsBackupConfigurationBackupRetentionSettingsAttributes) RetentionUnit

type SettingsBackupConfigurationBackupRetentionSettingsState

type SettingsBackupConfigurationBackupRetentionSettingsState struct {
	RetainedBackups float64 `json:"retained_backups"`
	RetentionUnit   string  `json:"retention_unit"`
}

type SettingsBackupConfigurationState

type SettingsBackupConfigurationState struct {
	BinaryLogEnabled            bool                                                      `json:"binary_log_enabled"`
	Enabled                     bool                                                      `json:"enabled"`
	Location                    string                                                    `json:"location"`
	PointInTimeRecoveryEnabled  bool                                                      `json:"point_in_time_recovery_enabled"`
	StartTime                   string                                                    `json:"start_time"`
	TransactionLogRetentionDays float64                                                   `json:"transaction_log_retention_days"`
	BackupRetentionSettings     []SettingsBackupConfigurationBackupRetentionSettingsState `json:"backup_retention_settings"`
}

type SettingsDataCacheConfig

type SettingsDataCacheConfig struct {
	// DataCacheEnabled: bool, optional
	DataCacheEnabled terra.BoolValue `hcl:"data_cache_enabled,attr"`
}

type SettingsDataCacheConfigAttributes

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

func (SettingsDataCacheConfigAttributes) DataCacheEnabled

func (dcc SettingsDataCacheConfigAttributes) DataCacheEnabled() terra.BoolValue

func (SettingsDataCacheConfigAttributes) InternalRef

func (SettingsDataCacheConfigAttributes) InternalTokens

func (dcc SettingsDataCacheConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SettingsDataCacheConfigAttributes) InternalWithRef

type SettingsDataCacheConfigState

type SettingsDataCacheConfigState struct {
	DataCacheEnabled bool `json:"data_cache_enabled"`
}

type SettingsDatabaseFlags

type SettingsDatabaseFlags struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type SettingsDatabaseFlagsAttributes

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

func (SettingsDatabaseFlagsAttributes) InternalRef

func (SettingsDatabaseFlagsAttributes) InternalTokens

func (df SettingsDatabaseFlagsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SettingsDatabaseFlagsAttributes) InternalWithRef

func (SettingsDatabaseFlagsAttributes) Name

func (SettingsDatabaseFlagsAttributes) Value

type SettingsDatabaseFlagsState

type SettingsDatabaseFlagsState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type SettingsDenyMaintenancePeriod

type SettingsDenyMaintenancePeriod struct {
	// EndDate: string, required
	EndDate terra.StringValue `hcl:"end_date,attr" validate:"required"`
	// StartDate: string, required
	StartDate terra.StringValue `hcl:"start_date,attr" validate:"required"`
	// Time: string, required
	Time terra.StringValue `hcl:"time,attr" validate:"required"`
}

type SettingsDenyMaintenancePeriodAttributes

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

func (SettingsDenyMaintenancePeriodAttributes) EndDate

func (SettingsDenyMaintenancePeriodAttributes) InternalRef

func (SettingsDenyMaintenancePeriodAttributes) InternalTokens

func (SettingsDenyMaintenancePeriodAttributes) InternalWithRef

func (SettingsDenyMaintenancePeriodAttributes) StartDate

func (SettingsDenyMaintenancePeriodAttributes) Time

type SettingsDenyMaintenancePeriodState

type SettingsDenyMaintenancePeriodState struct {
	EndDate   string `json:"end_date"`
	StartDate string `json:"start_date"`
	Time      string `json:"time"`
}

type SettingsInsightsConfig

type SettingsInsightsConfig struct {
	// QueryInsightsEnabled: bool, optional
	QueryInsightsEnabled terra.BoolValue `hcl:"query_insights_enabled,attr"`
	// 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 SettingsInsightsConfigAttributes

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

func (SettingsInsightsConfigAttributes) InternalRef

func (SettingsInsightsConfigAttributes) InternalTokens

func (ic SettingsInsightsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SettingsInsightsConfigAttributes) InternalWithRef

func (SettingsInsightsConfigAttributes) QueryInsightsEnabled

func (ic SettingsInsightsConfigAttributes) QueryInsightsEnabled() terra.BoolValue

func (SettingsInsightsConfigAttributes) QueryPlansPerMinute

func (ic SettingsInsightsConfigAttributes) QueryPlansPerMinute() terra.NumberValue

func (SettingsInsightsConfigAttributes) QueryStringLength

func (ic SettingsInsightsConfigAttributes) QueryStringLength() terra.NumberValue

func (SettingsInsightsConfigAttributes) RecordApplicationTags

func (ic SettingsInsightsConfigAttributes) RecordApplicationTags() terra.BoolValue

func (SettingsInsightsConfigAttributes) RecordClientAddress

func (ic SettingsInsightsConfigAttributes) RecordClientAddress() terra.BoolValue

type SettingsInsightsConfigState

type SettingsInsightsConfigState struct {
	QueryInsightsEnabled  bool    `json:"query_insights_enabled"`
	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 SettingsIpConfiguration

type SettingsIpConfiguration struct {
	// AllocatedIpRange: string, optional
	AllocatedIpRange terra.StringValue `hcl:"allocated_ip_range,attr"`
	// EnablePrivatePathForGoogleCloudServices: bool, optional
	EnablePrivatePathForGoogleCloudServices terra.BoolValue `hcl:"enable_private_path_for_google_cloud_services,attr"`
	// Ipv4Enabled: bool, optional
	Ipv4Enabled terra.BoolValue `hcl:"ipv4_enabled,attr"`
	// PrivateNetwork: string, optional
	PrivateNetwork terra.StringValue `hcl:"private_network,attr"`
	// RequireSsl: bool, optional
	RequireSsl terra.BoolValue `hcl:"require_ssl,attr"`
	// SslMode: string, optional
	SslMode terra.StringValue `hcl:"ssl_mode,attr"`
	// SettingsIpConfigurationAuthorizedNetworks: min=0
	AuthorizedNetworks []SettingsIpConfigurationAuthorizedNetworks `hcl:"authorized_networks,block" validate:"min=0"`
	// SettingsIpConfigurationPscConfig: min=0
	PscConfig []SettingsIpConfigurationPscConfig `hcl:"psc_config,block" validate:"min=0"`
}

type SettingsIpConfigurationAttributes

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

func (SettingsIpConfigurationAttributes) AllocatedIpRange

func (ic SettingsIpConfigurationAttributes) AllocatedIpRange() terra.StringValue

func (SettingsIpConfigurationAttributes) AuthorizedNetworks

func (SettingsIpConfigurationAttributes) EnablePrivatePathForGoogleCloudServices

func (ic SettingsIpConfigurationAttributes) EnablePrivatePathForGoogleCloudServices() terra.BoolValue

func (SettingsIpConfigurationAttributes) InternalRef

func (SettingsIpConfigurationAttributes) InternalTokens

func (ic SettingsIpConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SettingsIpConfigurationAttributes) InternalWithRef

func (SettingsIpConfigurationAttributes) Ipv4Enabled

func (SettingsIpConfigurationAttributes) PrivateNetwork

func (SettingsIpConfigurationAttributes) PscConfig

func (SettingsIpConfigurationAttributes) RequireSsl

func (SettingsIpConfigurationAttributes) SslMode

type SettingsIpConfigurationAuthorizedNetworks

type SettingsIpConfigurationAuthorizedNetworks struct {
	// ExpirationTime: string, optional
	ExpirationTime terra.StringValue `hcl:"expiration_time,attr"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type SettingsIpConfigurationAuthorizedNetworksAttributes

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

func (SettingsIpConfigurationAuthorizedNetworksAttributes) ExpirationTime

func (SettingsIpConfigurationAuthorizedNetworksAttributes) InternalRef

func (SettingsIpConfigurationAuthorizedNetworksAttributes) InternalTokens

func (SettingsIpConfigurationAuthorizedNetworksAttributes) InternalWithRef

func (SettingsIpConfigurationAuthorizedNetworksAttributes) Name

func (SettingsIpConfigurationAuthorizedNetworksAttributes) Value

type SettingsIpConfigurationAuthorizedNetworksState

type SettingsIpConfigurationAuthorizedNetworksState struct {
	ExpirationTime string `json:"expiration_time"`
	Name           string `json:"name"`
	Value          string `json:"value"`
}

type SettingsIpConfigurationPscConfig

type SettingsIpConfigurationPscConfig struct {
	// AllowedConsumerProjects: set of string, optional
	AllowedConsumerProjects terra.SetValue[terra.StringValue] `hcl:"allowed_consumer_projects,attr"`
	// PscEnabled: bool, optional
	PscEnabled terra.BoolValue `hcl:"psc_enabled,attr"`
}

type SettingsIpConfigurationPscConfigAttributes

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

func (SettingsIpConfigurationPscConfigAttributes) AllowedConsumerProjects

func (SettingsIpConfigurationPscConfigAttributes) InternalRef

func (SettingsIpConfigurationPscConfigAttributes) InternalTokens

func (SettingsIpConfigurationPscConfigAttributes) InternalWithRef

func (SettingsIpConfigurationPscConfigAttributes) PscEnabled

type SettingsIpConfigurationPscConfigState

type SettingsIpConfigurationPscConfigState struct {
	AllowedConsumerProjects []string `json:"allowed_consumer_projects"`
	PscEnabled              bool     `json:"psc_enabled"`
}

type SettingsIpConfigurationState

type SettingsIpConfigurationState struct {
	AllocatedIpRange                        string                                           `json:"allocated_ip_range"`
	EnablePrivatePathForGoogleCloudServices bool                                             `json:"enable_private_path_for_google_cloud_services"`
	Ipv4Enabled                             bool                                             `json:"ipv4_enabled"`
	PrivateNetwork                          string                                           `json:"private_network"`
	RequireSsl                              bool                                             `json:"require_ssl"`
	SslMode                                 string                                           `json:"ssl_mode"`
	AuthorizedNetworks                      []SettingsIpConfigurationAuthorizedNetworksState `json:"authorized_networks"`
	PscConfig                               []SettingsIpConfigurationPscConfigState          `json:"psc_config"`
}

type SettingsLocationPreference

type SettingsLocationPreference struct {
	// FollowGaeApplication: string, optional
	FollowGaeApplication terra.StringValue `hcl:"follow_gae_application,attr"`
	// SecondaryZone: string, optional
	SecondaryZone terra.StringValue `hcl:"secondary_zone,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
}

type SettingsLocationPreferenceAttributes

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

func (SettingsLocationPreferenceAttributes) FollowGaeApplication

func (lp SettingsLocationPreferenceAttributes) FollowGaeApplication() terra.StringValue

func (SettingsLocationPreferenceAttributes) InternalRef

func (SettingsLocationPreferenceAttributes) InternalTokens

func (SettingsLocationPreferenceAttributes) InternalWithRef

func (SettingsLocationPreferenceAttributes) SecondaryZone

func (SettingsLocationPreferenceAttributes) Zone

type SettingsLocationPreferenceState

type SettingsLocationPreferenceState struct {
	FollowGaeApplication string `json:"follow_gae_application"`
	SecondaryZone        string `json:"secondary_zone"`
	Zone                 string `json:"zone"`
}

type SettingsMaintenanceWindow

type SettingsMaintenanceWindow struct {
	// Day: number, optional
	Day terra.NumberValue `hcl:"day,attr"`
	// Hour: number, optional
	Hour terra.NumberValue `hcl:"hour,attr"`
	// UpdateTrack: string, optional
	UpdateTrack terra.StringValue `hcl:"update_track,attr"`
}

type SettingsMaintenanceWindowAttributes

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

func (SettingsMaintenanceWindowAttributes) Day

func (SettingsMaintenanceWindowAttributes) Hour

func (SettingsMaintenanceWindowAttributes) InternalRef

func (SettingsMaintenanceWindowAttributes) InternalTokens

func (SettingsMaintenanceWindowAttributes) InternalWithRef

func (SettingsMaintenanceWindowAttributes) UpdateTrack

type SettingsMaintenanceWindowState

type SettingsMaintenanceWindowState struct {
	Day         float64 `json:"day"`
	Hour        float64 `json:"hour"`
	UpdateTrack string  `json:"update_track"`
}

type SettingsPasswordValidationPolicy

type SettingsPasswordValidationPolicy struct {
	// Complexity: string, optional
	Complexity terra.StringValue `hcl:"complexity,attr"`
	// DisallowUsernameSubstring: bool, optional
	DisallowUsernameSubstring terra.BoolValue `hcl:"disallow_username_substring,attr"`
	// EnablePasswordPolicy: bool, required
	EnablePasswordPolicy terra.BoolValue `hcl:"enable_password_policy,attr" validate:"required"`
	// MinLength: number, optional
	MinLength terra.NumberValue `hcl:"min_length,attr"`
	// PasswordChangeInterval: string, optional
	PasswordChangeInterval terra.StringValue `hcl:"password_change_interval,attr"`
	// ReuseInterval: number, optional
	ReuseInterval terra.NumberValue `hcl:"reuse_interval,attr"`
}

type SettingsPasswordValidationPolicyAttributes

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

func (SettingsPasswordValidationPolicyAttributes) Complexity

func (SettingsPasswordValidationPolicyAttributes) DisallowUsernameSubstring

func (pvp SettingsPasswordValidationPolicyAttributes) DisallowUsernameSubstring() terra.BoolValue

func (SettingsPasswordValidationPolicyAttributes) EnablePasswordPolicy

func (pvp SettingsPasswordValidationPolicyAttributes) EnablePasswordPolicy() terra.BoolValue

func (SettingsPasswordValidationPolicyAttributes) InternalRef

func (SettingsPasswordValidationPolicyAttributes) InternalTokens

func (SettingsPasswordValidationPolicyAttributes) InternalWithRef

func (SettingsPasswordValidationPolicyAttributes) MinLength

func (SettingsPasswordValidationPolicyAttributes) PasswordChangeInterval

func (pvp SettingsPasswordValidationPolicyAttributes) PasswordChangeInterval() terra.StringValue

func (SettingsPasswordValidationPolicyAttributes) ReuseInterval

type SettingsPasswordValidationPolicyState

type SettingsPasswordValidationPolicyState struct {
	Complexity                string  `json:"complexity"`
	DisallowUsernameSubstring bool    `json:"disallow_username_substring"`
	EnablePasswordPolicy      bool    `json:"enable_password_policy"`
	MinLength                 float64 `json:"min_length"`
	PasswordChangeInterval    string  `json:"password_change_interval"`
	ReuseInterval             float64 `json:"reuse_interval"`
}

type SettingsSqlServerAuditConfig

type SettingsSqlServerAuditConfig struct {
	// Bucket: string, optional
	Bucket terra.StringValue `hcl:"bucket,attr"`
	// RetentionInterval: string, optional
	RetentionInterval terra.StringValue `hcl:"retention_interval,attr"`
	// UploadInterval: string, optional
	UploadInterval terra.StringValue `hcl:"upload_interval,attr"`
}

type SettingsSqlServerAuditConfigAttributes

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

func (SettingsSqlServerAuditConfigAttributes) Bucket

func (SettingsSqlServerAuditConfigAttributes) InternalRef

func (SettingsSqlServerAuditConfigAttributes) InternalTokens

func (SettingsSqlServerAuditConfigAttributes) InternalWithRef

func (SettingsSqlServerAuditConfigAttributes) RetentionInterval

func (ssac SettingsSqlServerAuditConfigAttributes) RetentionInterval() terra.StringValue

func (SettingsSqlServerAuditConfigAttributes) UploadInterval

type SettingsSqlServerAuditConfigState

type SettingsSqlServerAuditConfigState struct {
	Bucket            string `json:"bucket"`
	RetentionInterval string `json:"retention_interval"`
	UploadInterval    string `json:"upload_interval"`
}

type SettingsState

type SettingsState struct {
	ActivationPolicy          string                                  `json:"activation_policy"`
	AvailabilityType          string                                  `json:"availability_type"`
	Collation                 string                                  `json:"collation"`
	ConnectorEnforcement      string                                  `json:"connector_enforcement"`
	DeletionProtectionEnabled bool                                    `json:"deletion_protection_enabled"`
	DiskAutoresize            bool                                    `json:"disk_autoresize"`
	DiskAutoresizeLimit       float64                                 `json:"disk_autoresize_limit"`
	DiskSize                  float64                                 `json:"disk_size"`
	DiskType                  string                                  `json:"disk_type"`
	Edition                   string                                  `json:"edition"`
	EnableGoogleMlIntegration bool                                    `json:"enable_google_ml_integration"`
	PricingPlan               string                                  `json:"pricing_plan"`
	Tier                      string                                  `json:"tier"`
	TimeZone                  string                                  `json:"time_zone"`
	UserLabels                map[string]string                       `json:"user_labels"`
	Version                   float64                                 `json:"version"`
	ActiveDirectoryConfig     []SettingsActiveDirectoryConfigState    `json:"active_directory_config"`
	AdvancedMachineFeatures   []SettingsAdvancedMachineFeaturesState  `json:"advanced_machine_features"`
	BackupConfiguration       []SettingsBackupConfigurationState      `json:"backup_configuration"`
	DataCacheConfig           []SettingsDataCacheConfigState          `json:"data_cache_config"`
	DatabaseFlags             []SettingsDatabaseFlagsState            `json:"database_flags"`
	DenyMaintenancePeriod     []SettingsDenyMaintenancePeriodState    `json:"deny_maintenance_period"`
	InsightsConfig            []SettingsInsightsConfigState           `json:"insights_config"`
	IpConfiguration           []SettingsIpConfigurationState          `json:"ip_configuration"`
	LocationPreference        []SettingsLocationPreferenceState       `json:"location_preference"`
	MaintenanceWindow         []SettingsMaintenanceWindowState        `json:"maintenance_window"`
	PasswordValidationPolicy  []SettingsPasswordValidationPolicyState `json:"password_validation_policy"`
	SqlServerAuditConfig      []SettingsSqlServerAuditConfigState     `json:"sql_server_audit_config"`
}

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