Documentation ¶
Index ¶
- Constants
- func NewAzureDatabase(server AzureDbServer) []output.TfBlock
- type AwsDbInstance
- type AwsDbSubnetGroup
- type AzureDatabase
- type AzureDatabaseEngine
- type AzureDbFirewallRule
- type AzureDbServer
- type AzureMariaDbFirewallRule
- type AzureMariaDbServer
- type AzureMariaDbVirtualNetworkRule
- type AzureMySqlServer
- type AzureMySqlVirtualNetworkRule
- type AzurePostgreSqlFirewallRule
- type AzurePostgreSqlServer
- type AzurePostgreSqlVirtualNetworkRule
- type GoogleAuthorizedNetwork
- type GoogleIpConfiguration
- type GoogleSqlDatabaseInstance
- type GoogleSqlDatabaseInstanceSettings
- type GoogleSqlUser
Constants ¶
View Source
const AwsResourceName = "aws_db_instance"
View Source
const AzureMariaDbResourceName = "azurerm_mariadb_server"
View Source
const AzureMysqlResourceName = "azurerm_mysql_server"
View Source
const AzurePostgresqlResourceName = "azurerm_postgresql_server"
Variables ¶
This section is empty.
Functions ¶
func NewAzureDatabase ¶
func NewAzureDatabase(server AzureDbServer) []output.TfBlock
Types ¶
type AwsDbInstance ¶
type AwsDbInstance struct { *common.AwsResource `hcl:",squash" default:"name=aws_db_instance"` AllocatedStorage int `hcl:"allocated_storage" json:"allocated_storage"` Name string `hcl:"db_name" hcle:"omitempty" json:"name"` Engine string `hcl:"engine" json:"engine"` EngineVersion string `hcl:"engine_version" json:"engine_version"` Username string `hcl:"username" json:"username"` Password string `hcl:"password" json:"password"` InstanceClass string `hcl:"instance_class" json:"instance_class"` Identifier string `hcl:"identifier" json:"identifier"` SkipFinalSnapshot bool `hcl:"skip_final_snapshot" json:"skip_final_snapshot"` DbSubnetGroupName string `hcl:"db_subnet_group_name,expr" json:"db_subnet_group_name"` PubliclyAccessible bool `hcl:"publicly_accessible" json:"publicly_accessible"` VpcSecurityGroupIds []string `hcl:"vpc_security_group_ids,expr" json:"vpc_security_group_ids"` Port int `hcl:"port" hcle:"omitempty" json:"port"` // outputs Address string `json:"address" hcle:"omitempty" json:"address"` Arn string `json:"arn" hcle:"omitempty" json:"arn"` }
aws_db_instance
type AwsDbSubnetGroup ¶
type AwsDbSubnetGroup struct { *common.AwsResource `hcl:",squash" default:"name=aws_db_subnet_group"` Name string `hcl:"name"` Description string `hcl:"description"` SubnetIds []string `hcl:"subnet_ids,expr"` Arn string `json:"arn" hcle:"omitempty"` }
aws_db_subnet_group
func (AwsDbSubnetGroup) GetResourceName ¶
func (dbSubGroup AwsDbSubnetGroup) GetResourceName() string
type AzureDatabase ¶ added in v0.1.57
type AzureDatabase struct { AdministratorLogin string `hcl:"administrator_login" json:"administrator_login"` AdministratorLoginPassword string `hcl:"administrator_login_password" json:"administrator_login_password"` SkuName string `hcl:"sku_name" json:"sku_name"` StorageMb int `hcl:"storage_mb" json:"storage_mb"` Version string `hcl:"version" json:"version"` SslEnforcementEnabled bool `hcl:"ssl_enforcement_enabled" json:"ssl_enforcement_enabled"` Fqdn string `hcl:"fqdn" hcle:"omitempty"` Id string `hcl:"id" hcle:"omitempty"` NameOut string `json:"name" hcle:"omitempty"` }
type AzureDatabaseEngine ¶ added in v0.1.39
type AzureDatabaseEngine interface {
GetServerName() string
}
type AzureDbFirewallRule ¶
type AzureDbFirewallRule struct { *common.AzResource `hcl:",squash" default:"name=azurerm_mysql_firewall_rule"` ServerName string `hcl:"server_name,expr"` StartIpAddress string `hcl:"start_ip_address"` EndIpAddress string `hcl:"end_ip_address"` }
type AzureDbServer ¶
type AzureDbServer struct { *common.AzResource `default:"name=azurerm_mysql_server"` AdministratorLogin string AdministratorLoginPassword string SkuName string StorageMb int Version string Engine resourcespb.DatabaseEngine SubnetId string }
type AzureMariaDbFirewallRule ¶ added in v0.1.39
type AzureMariaDbFirewallRule struct { *common.AzResource `hcl:",squash" default:"name=azurerm_mariadb_firewall_rule"` ServerName string `hcl:"server_name,expr"` StartIpAddress string `hcl:"start_ip_address"` EndIpAddress string `hcl:"end_ip_address"` }
type AzureMariaDbServer ¶ added in v0.1.39
type AzureMariaDbServer struct { *common.AzResource `hcl:",squash" default:"name=azurerm_mariadb_server"` AzureDatabase `hcl:",squash"` }
func (AzureMariaDbServer) GetServerName ¶ added in v0.1.39
func (db AzureMariaDbServer) GetServerName() string
type AzureMariaDbVirtualNetworkRule ¶ added in v0.1.39
type AzureMariaDbVirtualNetworkRule struct { *common.AzResource `hcl:",squash" default:"name=azurerm_mariadb_virtual_network_rule"` ServerName string `hcl:"server_name,expr"` SubnetId string `hcl:"subnet_id,expr"` }
type AzureMySqlServer ¶
type AzureMySqlServer struct { *common.AzResource `hcl:",squash" default:"name=azurerm_mysql_server"` AzureDatabase `hcl:",squash"` SslMinimalTlsVersionEnforced string `hcl:"ssl_minimal_tls_version_enforced"` }
func (AzureMySqlServer) GetServerName ¶
func (db AzureMySqlServer) GetServerName() string
type AzureMySqlVirtualNetworkRule ¶
type AzureMySqlVirtualNetworkRule struct { *common.AzResource `hcl:",squash" default:"name=azurerm_mysql_virtual_network_rule"` ServerName string `hcl:"server_name,expr"` SubnetId string `hcl:"subnet_id,expr"` }
type AzurePostgreSqlFirewallRule ¶ added in v0.1.38
type AzurePostgreSqlFirewallRule struct { *common.AzResource `hcl:",squash" default:"name=azurerm_postgresql_firewall_rule"` ServerName string `hcl:"server_name,expr"` StartIpAddress string `hcl:"start_ip_address"` EndIpAddress string `hcl:"end_ip_address"` }
type AzurePostgreSqlServer ¶ added in v0.1.38
type AzurePostgreSqlServer struct { *common.AzResource `hcl:",squash" default:"name=azurerm_postgresql_server"` AzureDatabase `hcl:",squash"` SslMinimalTlsVersionEnforced string `hcl:"ssl_minimal_tls_version_enforced"` }
func (AzurePostgreSqlServer) GetServerName ¶ added in v0.1.38
func (db AzurePostgreSqlServer) GetServerName() string
type AzurePostgreSqlVirtualNetworkRule ¶ added in v0.1.38
type AzurePostgreSqlVirtualNetworkRule struct { *common.AzResource `hcl:",squash" default:"name=azurerm_postgresql_virtual_network_rule"` ServerName string `hcl:"server_name,expr"` SubnetId string `hcl:"subnet_id,expr"` }
type GoogleAuthorizedNetwork ¶ added in v0.1.53
type GoogleAuthorizedNetwork struct {
Value string `hcl:"value"`
}
type GoogleIpConfiguration ¶ added in v0.1.53
type GoogleIpConfiguration struct {
AuthorizedNetworks []GoogleAuthorizedNetwork `hcl:"authorized_networks,blocks"`
}
type GoogleSqlDatabaseInstance ¶ added in v0.1.53
type GoogleSqlDatabaseInstance struct { *common.GcpResource `hcl:",squash" default:"name=google_sql_database_instance"` DatabaseVersion string `hcl:"database_version" json:"database_version"` Settings []GoogleSqlDatabaseInstanceSettings `hcl:"settings,blocks" json:"settings"` DeletionProtection bool `hcl:"deletion_protection" json:"deletion_protection"` // outputs PublicIpAddress string `json:"public_ip_address" hcle:"omitempty" json:"public_ip_address"` }
type GoogleSqlDatabaseInstanceSettings ¶ added in v0.1.53
type GoogleSqlDatabaseInstanceSettings struct { Tier string `hcl:"tier" json:"tier"` AvailabilityType string `hcl:"availability_type" json:"availability_type"` DiskAutoResize bool `hcl:"disk_autoresize" json:"disk_auto_resize"` DiskSize int `hcl:"disk_size" json:"disk_size"` IpConfiguration GoogleIpConfiguration `hcl:"ip_configuration"` }
type GoogleSqlUser ¶ added in v0.1.53
type GoogleSqlUser struct { *common.GcpResource `hcl:",squash" default:"name=google_sql_user"` Instance string `hcl:"instance,expr" json:"instance"` Password string `hcl:"password" json:"password"` }
Click to show internal directories.
Click to hide internal directories.