azure-native.dbformysql.Configuration
Explore with Pulumi AI
Represents a Configuration. Azure REST API version: 2022-01-01. Prior API version in Azure Native 1.x: 2017-12-01.
Other available API versions: 2017-12-01, 2020-07-01-privatepreview, 2023-06-01-preview, 2023-06-30, 2023-12-30.
Example Usage
ConfigurationCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configuration = new AzureNative.DBforMySQL.Configuration("configuration", new()
{
ConfigurationName = "event_scheduler",
ResourceGroupName = "TestGroup",
ServerName = "testserver",
Source = AzureNative.DBforMySQL.ConfigurationSource.User_override,
Value = "off",
});
});
package main
import (
dbformysql "github.com/pulumi/pulumi-azure-native-sdk/dbformysql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbformysql.NewConfiguration(ctx, "configuration", &dbformysql.ConfigurationArgs{
ConfigurationName: pulumi.String("event_scheduler"),
ResourceGroupName: pulumi.String("TestGroup"),
ServerName: pulumi.String("testserver"),
Source: pulumi.String(dbformysql.ConfigurationSource_User_Override),
Value: pulumi.String("off"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.dbformysql.Configuration;
import com.pulumi.azurenative.dbformysql.ConfigurationArgs;
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 configuration = new Configuration("configuration", ConfigurationArgs.builder()
.configurationName("event_scheduler")
.resourceGroupName("TestGroup")
.serverName("testserver")
.source("user-override")
.value("off")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
configuration = azure_native.dbformysql.Configuration("configuration",
configuration_name="event_scheduler",
resource_group_name="TestGroup",
server_name="testserver",
source=azure_native.dbformysql.ConfigurationSource.USER_OVERRIDE,
value="off")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const configuration = new azure_native.dbformysql.Configuration("configuration", {
configurationName: "event_scheduler",
resourceGroupName: "TestGroup",
serverName: "testserver",
source: azure_native.dbformysql.ConfigurationSource.User_override,
value: "off",
});
resources:
configuration:
type: azure-native:dbformysql:Configuration
properties:
configurationName: event_scheduler
resourceGroupName: TestGroup
serverName: testserver
source: user-override
value: off
Create Configuration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
@overload
def Configuration(resource_name: str,
args: ConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Configuration(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
configuration_name: Optional[str] = None,
current_value: Optional[str] = None,
source: Optional[Union[str, ConfigurationSource]] = None,
value: Optional[str] = None)
func NewConfiguration(ctx *Context, name string, args ConfigurationArgs, opts ...ResourceOption) (*Configuration, error)
public Configuration(string name, ConfigurationArgs args, CustomResourceOptions? opts = null)
public Configuration(String name, ConfigurationArgs args)
public Configuration(String name, ConfigurationArgs args, CustomResourceOptions options)
type: azure-native:dbformysql:Configuration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeConfigurationResource = new AzureNative.DBforMySQL.Configuration("azure-nativeConfigurationResource", new()
{
ResourceGroupName = "string",
ServerName = "string",
ConfigurationName = "string",
CurrentValue = "string",
Source = "string",
Value = "string",
});
example, err := dbformysql.NewConfiguration(ctx, "azure-nativeConfigurationResource", &dbformysql.ConfigurationArgs{
ResourceGroupName: pulumi.String("string"),
ServerName: pulumi.String("string"),
ConfigurationName: pulumi.String("string"),
CurrentValue: pulumi.String("string"),
Source: pulumi.String("string"),
Value: pulumi.String("string"),
})
var azure_nativeConfigurationResource = new Configuration("azure-nativeConfigurationResource", ConfigurationArgs.builder()
.resourceGroupName("string")
.serverName("string")
.configurationName("string")
.currentValue("string")
.source("string")
.value("string")
.build());
azure_native_configuration_resource = azure_native.dbformysql.Configuration("azure-nativeConfigurationResource",
resource_group_name="string",
server_name="string",
configuration_name="string",
current_value="string",
source="string",
value="string")
const azure_nativeConfigurationResource = new azure_native.dbformysql.Configuration("azure-nativeConfigurationResource", {
resourceGroupName: "string",
serverName: "string",
configurationName: "string",
currentValue: "string",
source: "string",
value: "string",
});
type: azure-native:dbformysql:Configuration
properties:
configurationName: string
currentValue: string
resourceGroupName: string
serverName: string
source: string
value: string
Configuration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Configuration resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Server
Name string - The name of the server.
- Configuration
Name string - The name of the server configuration.
- Current
Value string - Current value of the configuration.
- Source
string | Pulumi.
Azure Native. DBfor My SQL. Configuration Source - Source of the configuration.
- Value string
- Value of the configuration.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Server
Name string - The name of the server.
- Configuration
Name string - The name of the server configuration.
- Current
Value string - Current value of the configuration.
- Source
string | Configuration
Source - Source of the configuration.
- Value string
- Value of the configuration.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- server
Name String - The name of the server.
- configuration
Name String - The name of the server configuration.
- current
Value String - Current value of the configuration.
- source
String | Configuration
Source - Source of the configuration.
- value String
- Value of the configuration.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- server
Name string - The name of the server.
- configuration
Name string - The name of the server configuration.
- current
Value string - Current value of the configuration.
- source
string | Configuration
Source - Source of the configuration.
- value string
- Value of the configuration.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- server_
name str - The name of the server.
- configuration_
name str - The name of the server configuration.
- current_
value str - Current value of the configuration.
- source
str | Configuration
Source - Source of the configuration.
- value str
- Value of the configuration.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- server
Name String - The name of the server.
- configuration
Name String - The name of the server configuration.
- current
Value String - Current value of the configuration.
- source String | "system-default" | "user-override"
- Source of the configuration.
- value String
- Value of the configuration.
Outputs
All input properties are implicitly available as output properties. Additionally, the Configuration resource produces the following output properties:
- Allowed
Values string - Allowed values of the configuration.
- Data
Type string - Data type of the configuration.
- Default
Value string - Default value of the configuration.
- Description string
- Description of the configuration.
- Documentation
Link string - The link used to get the document from community or Azure site.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Config stringPending Restart - If is the configuration pending restart or not.
- Is
Dynamic stringConfig - If is the configuration dynamic.
- Is
Read stringOnly - If is the configuration read only.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. DBfor My SQL. Outputs. System Data Response - The system metadata relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Allowed
Values string - Allowed values of the configuration.
- Data
Type string - Data type of the configuration.
- Default
Value string - Default value of the configuration.
- Description string
- Description of the configuration.
- Documentation
Link string - The link used to get the document from community or Azure site.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Config stringPending Restart - If is the configuration pending restart or not.
- Is
Dynamic stringConfig - If is the configuration dynamic.
- Is
Read stringOnly - If is the configuration read only.
- Name string
- The name of the resource
- System
Data SystemData Response - The system metadata relating to this resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allowed
Values String - Allowed values of the configuration.
- data
Type String - Data type of the configuration.
- default
Value String - Default value of the configuration.
- description String
- Description of the configuration.
- documentation
Link String - The link used to get the document from community or Azure site.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Config StringPending Restart - If is the configuration pending restart or not.
- is
Dynamic StringConfig - If is the configuration dynamic.
- is
Read StringOnly - If is the configuration read only.
- name String
- The name of the resource
- system
Data SystemData Response - The system metadata relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allowed
Values string - Allowed values of the configuration.
- data
Type string - Data type of the configuration.
- default
Value string - Default value of the configuration.
- description string
- Description of the configuration.
- documentation
Link string - The link used to get the document from community or Azure site.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Config stringPending Restart - If is the configuration pending restart or not.
- is
Dynamic stringConfig - If is the configuration dynamic.
- is
Read stringOnly - If is the configuration read only.
- name string
- The name of the resource
- system
Data SystemData Response - The system metadata relating to this resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allowed_
values str - Allowed values of the configuration.
- data_
type str - Data type of the configuration.
- default_
value str - Default value of the configuration.
- description str
- Description of the configuration.
- documentation_
link str - The link used to get the document from community or Azure site.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
config_ strpending_ restart - If is the configuration pending restart or not.
- is_
dynamic_ strconfig - If is the configuration dynamic.
- is_
read_ stronly - If is the configuration read only.
- name str
- The name of the resource
- system_
data SystemData Response - The system metadata relating to this resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- allowed
Values String - Allowed values of the configuration.
- data
Type String - Data type of the configuration.
- default
Value String - Default value of the configuration.
- description String
- Description of the configuration.
- documentation
Link String - The link used to get the document from community or Azure site.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Config StringPending Restart - If is the configuration pending restart or not.
- is
Dynamic StringConfig - If is the configuration dynamic.
- is
Read StringOnly - If is the configuration read only.
- name String
- The name of the resource
- system
Data Property Map - The system metadata relating to this resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ConfigurationSource, ConfigurationSourceArgs
- System_
default - system-default
- User_
override - user-override
- Configuration
Source_System_Default - system-default
- Configuration
Source_User_Override - user-override
- Systemdefault
- system-default
- Useroverride
- user-override
- System_
default - system-default
- User_
override - user-override
- SYSTEM_DEFAULT
- system-default
- USER_OVERRIDE
- user-override
- "system-default"
- system-default
- "user-override"
- user-override
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:dbformysql:Configuration event_scheduler /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations/{configurationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0