mysql

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

nolint: lll Package mysql exports types, functions, subpackages for provisioning mysql resources.

> This provider is a derived work of the [Terraform Provider](https://github.com/terraform-providers/terraform-provider-azurerm) > distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature, > first check the [`pulumi/pulumi-azure` repo](https://github.com/pulumi/pulumi-azure/issues); however, if that doesn't turn up anything, > please consult the source [`terraform-providers/terraform-provider-azurerm` repo](https://github.com/terraform-providers/terraform-provider-azurerm/issues).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

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

Sets a MySQL Configuration value on a MySQL Server.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/mysql_configuration.html.markdown.

func GetConfiguration

func GetConfiguration(ctx *pulumi.Context,
	name string, id pulumi.ID, state *ConfigurationState, opts ...pulumi.ResourceOpt) (*Configuration, error)

GetConfiguration gets an existing Configuration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewConfiguration

func NewConfiguration(ctx *pulumi.Context,
	name string, args *ConfigurationArgs, opts ...pulumi.ResourceOpt) (*Configuration, error)

NewConfiguration registers a new resource with the given unique name, arguments, and options.

func (*Configuration) ID

func (r *Configuration) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Configuration) Name

func (r *Configuration) Name() *pulumi.StringOutput

Specifies the name of the MySQL Configuration, which needs [to be a valid MySQL configuration name](https://dev.mysql.com/doc/refman/5.7/en/server-configuration.html). Changing this forces a new resource to be created.

func (*Configuration) ResourceGroupName

func (r *Configuration) ResourceGroupName() *pulumi.StringOutput

The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.

func (*Configuration) ServerName

func (r *Configuration) ServerName() *pulumi.StringOutput

Specifies the name of the MySQL Server. Changing this forces a new resource to be created.

func (*Configuration) URN

func (r *Configuration) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*Configuration) Value

func (r *Configuration) Value() *pulumi.StringOutput

Specifies the value of the MySQL Configuration. See the MySQL documentation for valid values.

type ConfigurationArgs

type ConfigurationArgs struct {
	// Specifies the name of the MySQL Configuration, which needs [to be a valid MySQL configuration name](https://dev.mysql.com/doc/refman/5.7/en/server-configuration.html). Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// Specifies the name of the MySQL Server. Changing this forces a new resource to be created.
	ServerName interface{}
	// Specifies the value of the MySQL Configuration. See the MySQL documentation for valid values.
	Value interface{}
}

The set of arguments for constructing a Configuration resource.

type ConfigurationState

type ConfigurationState struct {
	// Specifies the name of the MySQL Configuration, which needs [to be a valid MySQL configuration name](https://dev.mysql.com/doc/refman/5.7/en/server-configuration.html). Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// Specifies the name of the MySQL Server. Changing this forces a new resource to be created.
	ServerName interface{}
	// Specifies the value of the MySQL Configuration. See the MySQL documentation for valid values.
	Value interface{}
}

Input properties used for looking up and filtering Configuration resources.

type Database

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

Manages a MySQL Database within a MySQL Server

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/mysql_database.html.markdown.

func GetDatabase

func GetDatabase(ctx *pulumi.Context,
	name string, id pulumi.ID, state *DatabaseState, opts ...pulumi.ResourceOpt) (*Database, error)

GetDatabase gets an existing Database resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDatabase

func NewDatabase(ctx *pulumi.Context,
	name string, args *DatabaseArgs, opts ...pulumi.ResourceOpt) (*Database, error)

NewDatabase registers a new resource with the given unique name, arguments, and options.

func (*Database) Charset

func (r *Database) Charset() *pulumi.StringOutput

Specifies the Charset for the MySQL Database, which needs [to be a valid MySQL Charset](https://dev.mysql.com/doc/refman/5.7/en/charset-charsets.html). Changing this forces a new resource to be created.

func (*Database) Collation

func (r *Database) Collation() *pulumi.StringOutput

Specifies the Collation for the MySQL Database, which needs [to be a valid MySQL Collation](https://dev.mysql.com/doc/refman/5.7/en/charset-mysql.html). Changing this forces a new resource to be created.

func (*Database) ID

func (r *Database) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Database) Name

func (r *Database) Name() *pulumi.StringOutput

Specifies the name of the MySQL Database, which needs [to be a valid MySQL identifier](https://dev.mysql.com/doc/refman/5.7/en/identifiers.html). Changing this forces a new resource to be created.

func (*Database) ResourceGroupName

func (r *Database) ResourceGroupName() *pulumi.StringOutput

The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.

func (*Database) ServerName

func (r *Database) ServerName() *pulumi.StringOutput

Specifies the name of the MySQL Server. Changing this forces a new resource to be created.

func (*Database) URN

func (r *Database) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

type DatabaseArgs

type DatabaseArgs struct {
	// Specifies the Charset for the MySQL Database, which needs [to be a valid MySQL Charset](https://dev.mysql.com/doc/refman/5.7/en/charset-charsets.html). Changing this forces a new resource to be created.
	Charset interface{}
	// Specifies the Collation for the MySQL Database, which needs [to be a valid MySQL Collation](https://dev.mysql.com/doc/refman/5.7/en/charset-mysql.html). Changing this forces a new resource to be created.
	Collation interface{}
	// Specifies the name of the MySQL Database, which needs [to be a valid MySQL identifier](https://dev.mysql.com/doc/refman/5.7/en/identifiers.html). Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// Specifies the name of the MySQL Server. Changing this forces a new resource to be created.
	ServerName interface{}
}

The set of arguments for constructing a Database resource.

type DatabaseState

type DatabaseState struct {
	// Specifies the Charset for the MySQL Database, which needs [to be a valid MySQL Charset](https://dev.mysql.com/doc/refman/5.7/en/charset-charsets.html). Changing this forces a new resource to be created.
	Charset interface{}
	// Specifies the Collation for the MySQL Database, which needs [to be a valid MySQL Collation](https://dev.mysql.com/doc/refman/5.7/en/charset-mysql.html). Changing this forces a new resource to be created.
	Collation interface{}
	// Specifies the name of the MySQL Database, which needs [to be a valid MySQL identifier](https://dev.mysql.com/doc/refman/5.7/en/identifiers.html). Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// Specifies the name of the MySQL Server. Changing this forces a new resource to be created.
	ServerName interface{}
}

Input properties used for looking up and filtering Database resources.

type FirewallRule

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

Manages a Firewall Rule for a MySQL Server

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/mysql_firewall_rule.html.markdown.

func GetFirewallRule

func GetFirewallRule(ctx *pulumi.Context,
	name string, id pulumi.ID, state *FirewallRuleState, opts ...pulumi.ResourceOpt) (*FirewallRule, error)

GetFirewallRule gets an existing FirewallRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFirewallRule

func NewFirewallRule(ctx *pulumi.Context,
	name string, args *FirewallRuleArgs, opts ...pulumi.ResourceOpt) (*FirewallRule, error)

NewFirewallRule registers a new resource with the given unique name, arguments, and options.

func (*FirewallRule) EndIpAddress

func (r *FirewallRule) EndIpAddress() *pulumi.StringOutput

Specifies the End IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

func (*FirewallRule) ID

func (r *FirewallRule) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*FirewallRule) Name

func (r *FirewallRule) Name() *pulumi.StringOutput

Specifies the name of the MySQL Firewall Rule. Changing this forces a new resource to be created.

func (*FirewallRule) ResourceGroupName

func (r *FirewallRule) ResourceGroupName() *pulumi.StringOutput

The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.

func (*FirewallRule) ServerName

func (r *FirewallRule) ServerName() *pulumi.StringOutput

Specifies the name of the MySQL Server. Changing this forces a new resource to be created.

func (*FirewallRule) StartIpAddress

func (r *FirewallRule) StartIpAddress() *pulumi.StringOutput

Specifies the Start IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.

func (*FirewallRule) URN

func (r *FirewallRule) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

type FirewallRuleArgs

type FirewallRuleArgs struct {
	// Specifies the End IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.
	EndIpAddress interface{}
	// Specifies the name of the MySQL Firewall Rule. Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// Specifies the name of the MySQL Server. Changing this forces a new resource to be created.
	ServerName interface{}
	// Specifies the Start IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.
	StartIpAddress interface{}
}

The set of arguments for constructing a FirewallRule resource.

type FirewallRuleState

type FirewallRuleState struct {
	// Specifies the End IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.
	EndIpAddress interface{}
	// Specifies the name of the MySQL Firewall Rule. Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group in which the MySQL Server exists. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// Specifies the name of the MySQL Server. Changing this forces a new resource to be created.
	ServerName interface{}
	// Specifies the Start IP Address associated with this Firewall Rule. Changing this forces a new resource to be created.
	StartIpAddress interface{}
}

Input properties used for looking up and filtering FirewallRule resources.

type Server

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

Manages a MySQL Server.

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/mysql_server.html.markdown.

func GetServer

func GetServer(ctx *pulumi.Context,
	name string, id pulumi.ID, state *ServerState, opts ...pulumi.ResourceOpt) (*Server, error)

GetServer gets an existing Server resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewServer

func NewServer(ctx *pulumi.Context,
	name string, args *ServerArgs, opts ...pulumi.ResourceOpt) (*Server, error)

NewServer registers a new resource with the given unique name, arguments, and options.

func (*Server) AdministratorLogin

func (r *Server) AdministratorLogin() *pulumi.StringOutput

The Administrator Login for the MySQL Server. Changing this forces a new resource to be created.

func (*Server) AdministratorLoginPassword

func (r *Server) AdministratorLoginPassword() *pulumi.StringOutput

The Password associated with the `administratorLogin` for the MySQL Server.

func (*Server) Fqdn

func (r *Server) Fqdn() *pulumi.StringOutput

The FQDN of the MySQL Server.

func (*Server) ID

func (r *Server) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Server) Location

func (r *Server) Location() *pulumi.StringOutput

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

func (*Server) Name

func (r *Server) Name() *pulumi.StringOutput

Specifies the SKU Name for this MySQL Server. The name of the SKU, follows the `tier` + `family` + `cores` pattern (e.g. B_Gen4_1, GP_Gen5_8). For more information see the [product documentation](https://docs.microsoft.com/en-us/rest/api/mysql/servers/create#sku).

func (*Server) ResourceGroupName

func (r *Server) ResourceGroupName() *pulumi.StringOutput

The name of the resource group in which to create the MySQL Server. Changing this forces a new resource to be created.

func (*Server) Sku

func (r *Server) Sku() *pulumi.Output

A `sku` block as defined below.

func (*Server) SslEnforcement

func (r *Server) SslEnforcement() *pulumi.StringOutput

Specifies if SSL should be enforced on connections. Possible values are `Enabled` and `Disabled`.

func (*Server) StorageProfile

func (r *Server) StorageProfile() *pulumi.Output

A `storageProfile` block as defined below.

func (*Server) Tags

func (r *Server) Tags() *pulumi.MapOutput

A mapping of tags to assign to the resource.

func (*Server) URN

func (r *Server) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*Server) Version

func (r *Server) Version() *pulumi.StringOutput

Specifies the version of MySQL to use. Valid values are `5.6` and `5.7`. Changing this forces a new resource to be created.

type ServerArgs

type ServerArgs struct {
	// The Administrator Login for the MySQL Server. Changing this forces a new resource to be created.
	AdministratorLogin interface{}
	// The Password associated with the `administratorLogin` for the MySQL Server.
	AdministratorLoginPassword interface{}
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location interface{}
	// Specifies the SKU Name for this MySQL Server. The name of the SKU, follows the `tier` + `family` + `cores` pattern (e.g. B_Gen4_1, GP_Gen5_8). For more information see the [product documentation](https://docs.microsoft.com/en-us/rest/api/mysql/servers/create#sku).
	Name interface{}
	// The name of the resource group in which to create the MySQL Server. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// A `sku` block as defined below.
	Sku interface{}
	// Specifies if SSL should be enforced on connections. Possible values are `Enabled` and `Disabled`.
	SslEnforcement interface{}
	// A `storageProfile` block as defined below.
	StorageProfile interface{}
	// A mapping of tags to assign to the resource.
	Tags interface{}
	// Specifies the version of MySQL to use. Valid values are `5.6` and `5.7`. Changing this forces a new resource to be created.
	Version interface{}
}

The set of arguments for constructing a Server resource.

type ServerState

type ServerState struct {
	// The Administrator Login for the MySQL Server. Changing this forces a new resource to be created.
	AdministratorLogin interface{}
	// The Password associated with the `administratorLogin` for the MySQL Server.
	AdministratorLoginPassword interface{}
	// The FQDN of the MySQL Server.
	Fqdn interface{}
	// Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
	Location interface{}
	// Specifies the SKU Name for this MySQL Server. The name of the SKU, follows the `tier` + `family` + `cores` pattern (e.g. B_Gen4_1, GP_Gen5_8). For more information see the [product documentation](https://docs.microsoft.com/en-us/rest/api/mysql/servers/create#sku).
	Name interface{}
	// The name of the resource group in which to create the MySQL Server. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// A `sku` block as defined below.
	Sku interface{}
	// Specifies if SSL should be enforced on connections. Possible values are `Enabled` and `Disabled`.
	SslEnforcement interface{}
	// A `storageProfile` block as defined below.
	StorageProfile interface{}
	// A mapping of tags to assign to the resource.
	Tags interface{}
	// Specifies the version of MySQL to use. Valid values are `5.6` and `5.7`. Changing this forces a new resource to be created.
	Version interface{}
}

Input properties used for looking up and filtering Server resources.

type VirtualNetworkRule added in v0.16.1

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

Manages a MySQL Virtual Network Rule.

> **NOTE:** MySQL Virtual Network Rules [can only be used with SKU Tiers of `GeneralPurpose` or `MemoryOptimized`](https://docs.microsoft.com/en-us/azure/mysql/concepts-data-access-and-security-vnet)

> This content is derived from https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/website/docs/r/mysql_virtual_network_rule.html.markdown.

func GetVirtualNetworkRule added in v0.16.1

func GetVirtualNetworkRule(ctx *pulumi.Context,
	name string, id pulumi.ID, state *VirtualNetworkRuleState, opts ...pulumi.ResourceOpt) (*VirtualNetworkRule, error)

GetVirtualNetworkRule gets an existing VirtualNetworkRule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewVirtualNetworkRule added in v0.16.1

func NewVirtualNetworkRule(ctx *pulumi.Context,
	name string, args *VirtualNetworkRuleArgs, opts ...pulumi.ResourceOpt) (*VirtualNetworkRule, error)

NewVirtualNetworkRule registers a new resource with the given unique name, arguments, and options.

func (*VirtualNetworkRule) ID added in v0.16.1

ID is this resource's unique identifier assigned by its provider.

func (*VirtualNetworkRule) Name added in v0.16.1

The name of the MySQL Virtual Network Rule. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Changing this forces a new resource to be created.

func (*VirtualNetworkRule) ResourceGroupName added in v0.16.1

func (r *VirtualNetworkRule) ResourceGroupName() *pulumi.StringOutput

The name of the resource group where the MySQL server resides. Changing this forces a new resource to be created.

func (*VirtualNetworkRule) ServerName added in v0.16.1

func (r *VirtualNetworkRule) ServerName() *pulumi.StringOutput

The name of the SQL Server to which this MySQL virtual network rule will be applied to. Changing this forces a new resource to be created.

func (*VirtualNetworkRule) SubnetId added in v0.16.1

func (r *VirtualNetworkRule) SubnetId() *pulumi.StringOutput

The ID of the subnet that the MySQL server will be connected to.

func (*VirtualNetworkRule) URN added in v0.16.1

URN is this resource's unique name assigned by Pulumi.

type VirtualNetworkRuleArgs added in v0.16.1

type VirtualNetworkRuleArgs struct {
	// The name of the MySQL Virtual Network Rule. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group where the MySQL server resides. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// The name of the SQL Server to which this MySQL virtual network rule will be applied to. Changing this forces a new resource to be created.
	ServerName interface{}
	// The ID of the subnet that the MySQL server will be connected to.
	SubnetId interface{}
}

The set of arguments for constructing a VirtualNetworkRule resource.

type VirtualNetworkRuleState added in v0.16.1

type VirtualNetworkRuleState struct {
	// The name of the MySQL Virtual Network Rule. Cannot be empty and must only contain alphanumeric characters and hyphens. Cannot start with a number, and cannot start or end with a hyphen. Changing this forces a new resource to be created.
	Name interface{}
	// The name of the resource group where the MySQL server resides. Changing this forces a new resource to be created.
	ResourceGroupName interface{}
	// The name of the SQL Server to which this MySQL virtual network rule will be applied to. Changing this forces a new resource to be created.
	ServerName interface{}
	// The ID of the subnet that the MySQL server will be connected to.
	SubnetId interface{}
}

Input properties used for looking up and filtering VirtualNetworkRule resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL