azurermMariadbConfiguration
Sets a MariaDB Configuration value on a MariaDB Server.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "api-rg-pro",
}
);
const azurermMariadbServerExample = new azurerm.mariadbServer.MariadbServer(
this,
"example_1",
{
administrator_login: "mariadbadmin",
administrator_login_password: "H@Sh1CoR3!",
location: azurermResourceGroupExample.location,
name: "mariadb-server-1",
resource_group_name: azurermResourceGroupExample.name,
sku_name: "B_Gen5_2",
ssl_enforcement_enabled: true,
version: "10.2",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMariadbServerExample.overrideLogicalId("example");
const azurermMariadbConfigurationExample =
new azurerm.mariadbConfiguration.MariadbConfiguration(this, "example_2", {
name: "interactive_timeout",
resource_group_name: azurermResourceGroupExample.name,
server_name: azurermMariadbServerExample.name,
value: "600",
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermMariadbConfigurationExample.overrideLogicalId("example");
Argument Reference
The following arguments are supported:
-
name
- (Required) Specifies the name of the MariaDB Configuration, which needs to be a valid MariaDB configuration name. Changing this forces a new resource to be created. -
serverName
- (Required) Specifies the name of the MariaDB Server. Changing this forces a new resource to be created. -
resourceGroupName
- (Required) The name of the resource group in which the MariaDB Server exists. Changing this forces a new resource to be created. -
value
- (Required) Specifies the value of the MariaDB Configuration. See the MariaDB documentation for valid values. Changing this forces a new resource to be created.
Attributes Reference
The following attributes are exported:
id
- The ID of the MariaDB Configuration.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the MariaDB Configuration.update
- (Defaults to 30 minutes) Used when updating the MariaDB Configuration.read
- (Defaults to 5 minutes) Used when retrieving the MariaDB Configuration.delete
- (Defaults to 30 minutes) Used when deleting the MariaDB Configuration.
Import
MariaDB Configurations can be imported using the resourceId
, e.g.