Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.mariadb.kotlin
import com.pulumi.azure.mariadb.ServerArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages a MariaDB Server.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleServer = new azure.mariadb.Server("example", {
* name: "example-mariadb-server",
* location: example.location,
* resourceGroupName: example.name,
* administratorLogin: "mariadbadmin",
* administratorLoginPassword: "H@Sh1CoR3!",
* skuName: "B_Gen5_2",
* storageMb: 5120,
* version: "10.2",
* autoGrowEnabled: true,
* backupRetentionDays: 7,
* geoRedundantBackupEnabled: false,
* publicNetworkAccessEnabled: false,
* sslEnforcementEnabled: true,
* sslMinimalTlsVersionEnforced: "TLS1_2",
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_server = azure.mariadb.Server("example",
* name="example-mariadb-server",
* location=example.location,
* resource_group_name=example.name,
* administrator_login="mariadbadmin",
* administrator_login_password="H@Sh1CoR3!",
* sku_name="B_Gen5_2",
* storage_mb=5120,
* version="10.2",
* auto_grow_enabled=True,
* backup_retention_days=7,
* geo_redundant_backup_enabled=False,
* public_network_access_enabled=False,
* ssl_enforcement_enabled=True,
* ssl_minimal_tls_version_enforced="TLS1_2")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleServer = new Azure.MariaDB.Server("example", new()
* {
* Name = "example-mariadb-server",
* Location = example.Location,
* ResourceGroupName = example.Name,
* AdministratorLogin = "mariadbadmin",
* AdministratorLoginPassword = "H@Sh1CoR3!",
* SkuName = "B_Gen5_2",
* StorageMb = 5120,
* Version = "10.2",
* AutoGrowEnabled = true,
* BackupRetentionDays = 7,
* GeoRedundantBackupEnabled = false,
* PublicNetworkAccessEnabled = false,
* SslEnforcementEnabled = true,
* SslMinimalTlsVersionEnforced = "TLS1_2",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/mariadb"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = mariadb.NewServer(ctx, "example", &mariadb.ServerArgs{
* Name: pulumi.String("example-mariadb-server"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* AdministratorLogin: pulumi.String("mariadbadmin"),
* AdministratorLoginPassword: pulumi.String("H@Sh1CoR3!"),
* SkuName: pulumi.String("B_Gen5_2"),
* StorageMb: pulumi.Int(5120),
* Version: pulumi.String("10.2"),
* AutoGrowEnabled: pulumi.Bool(true),
* BackupRetentionDays: pulumi.Int(7),
* GeoRedundantBackupEnabled: pulumi.Bool(false),
* PublicNetworkAccessEnabled: pulumi.Bool(false),
* SslEnforcementEnabled: pulumi.Bool(true),
* SslMinimalTlsVersionEnforced: pulumi.String("TLS1_2"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.mariadb.Server;
* import com.pulumi.azure.mariadb.ServerArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleServer = new Server("exampleServer", ServerArgs.builder()
* .name("example-mariadb-server")
* .location(example.location())
* .resourceGroupName(example.name())
* .administratorLogin("mariadbadmin")
* .administratorLoginPassword("H@Sh1CoR3!")
* .skuName("B_Gen5_2")
* .storageMb(5120)
* .version("10.2")
* .autoGrowEnabled(true)
* .backupRetentionDays(7)
* .geoRedundantBackupEnabled(false)
* .publicNetworkAccessEnabled(false)
* .sslEnforcementEnabled(true)
* .sslMinimalTlsVersionEnforced("TLS1_2")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleServer:
* type: azure:mariadb:Server
* name: example
* properties:
* name: example-mariadb-server
* location: ${example.location}
* resourceGroupName: ${example.name}
* administratorLogin: mariadbadmin
* administratorLoginPassword: H@Sh1CoR3!
* skuName: B_Gen5_2
* storageMb: 5120
* version: '10.2'
* autoGrowEnabled: true
* backupRetentionDays: 7
* geoRedundantBackupEnabled: false
* publicNetworkAccessEnabled: false
* sslEnforcementEnabled: true
* sslMinimalTlsVersionEnforced: TLS1_2
* ```
*
* ## Import
* MariaDB Server's can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:mariadb/server:Server server1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.DBforMariaDB/servers/server1
* ```
* @property administratorLogin The Administrator login for the MariaDB Server. Changing this forces a new resource to be created.
* @property administratorLoginPassword The Password associated with the `administrator_login` for the MariaDB Server.
* @property autoGrowEnabled Enable/Disable auto-growing of the storage. Storage auto-grow prevents your server from running out of storage and becoming read-only. If storage auto grow is enabled, the storage automatically grows without impacting the workload. The default value if not explicitly specified is `true`. Defaults to `true`.
* @property backupRetentionDays Backup retention days for the server, supported values are between `7` and `35` days.
* @property createMode The creation mode. Can be used to restore or replicate existing servers. Possible values are `Default`, `Replica`, `GeoRestore`, and `PointInTimeRestore`. Defaults to `Default`.
* @property creationSourceServerId For creation modes other than `Default`, the source server ID to use.
* @property geoRedundantBackupEnabled Turn Geo-redundant server backups on/off. This allows you to choose between locally redundant or geo-redundant backup storage in the General Purpose and Memory Optimized tiers. When the backups are stored in geo-redundant backup storage, they are not only stored within the region in which your server is hosted, but are also replicated to a paired data center. This provides better protection and ability to restore your server in a different region in the event of a disaster. This is not supported for the Basic tier.
* @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
* @property name Specifies the name of the MariaDB Server. Changing this forces a new resource to be created.
* @property publicNetworkAccessEnabled Whether or not public network access is allowed for this server. Defaults to `true`.
* @property resourceGroupName The name of the resource group in which to create the MariaDB Server. Changing this forces a new resource to be created.
* @property restorePointInTime When `create_mode` is `PointInTimeRestore`, specifies the point in time to restore from `creation_source_server_id`. It should be provided in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) format, e.g. `2013-11-08T22:00:40Z`.
* @property skuName Specifies the SKU Name for this MariaDB 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/rest/api/mariadb/servers/create#sku). Possible values are `B_Gen5_1`, `B_Gen5_2`, `GP_Gen5_2`, `GP_Gen5_4`, `GP_Gen5_8`, `GP_Gen5_16`, `GP_Gen5_32`, `MO_Gen5_2`, `MO_Gen5_4`, `MO_Gen5_8` and `MO_Gen5_16`.
* @property sslEnforcementEnabled Specifies if SSL should be enforced on connections. Possible values are `true` and `false`.
* > **NOTE:** `ssl_minimal_tls_version_enforced` must be set to `TLSEnforcementDisabled` when `ssl_enforcement_enabled` is set to `false`.
* @property sslMinimalTlsVersionEnforced The minimum TLS version to support on the sever. Possible values are `TLSEnforcementDisabled`, `TLS1_0`, `TLS1_1`, and `TLS1_2`. Defaults to `TLS1_2`.
* @property storageMb Max storage allowed for a server. Possible values are between `5120` MB (5GB) and `1024000`MB (1TB) for the Basic SKU and between `5120` MB (5GB) and `4096000` MB (4TB) for General Purpose/Memory Optimized SKUs. For more information see the [product documentation](https://docs.microsoft.com/rest/api/mariadb/servers/create#storageprofile).
* @property tags A mapping of tags to assign to the resource.
* @property version Specifies the version of MariaDB to use. Possible values are `10.2` and `10.3`. Changing this forces a new resource to be created.
*/
public data class ServerArgs(
public val administratorLogin: Output? = null,
public val administratorLoginPassword: Output? = null,
public val autoGrowEnabled: Output? = null,
public val backupRetentionDays: Output? = null,
public val createMode: Output? = null,
public val creationSourceServerId: Output? = null,
public val geoRedundantBackupEnabled: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val publicNetworkAccessEnabled: Output? = null,
public val resourceGroupName: Output? = null,
public val restorePointInTime: Output? = null,
public val skuName: Output? = null,
public val sslEnforcementEnabled: Output? = null,
public val sslMinimalTlsVersionEnforced: Output? = null,
public val storageMb: Output? = null,
public val tags: Output