1. Packages
  2. Azure Native
  3. API Docs
  4. dbformysql
  5. Configuration
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.21.2 published on Friday, Dec 8, 2023 by Pulumi

azure-native.dbformysql.Configuration

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.21.2 published on Friday, Dec 8, 2023 by Pulumi

    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.

    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 = "user-override",
            Value = "off",
        });
    
    });
    
    package main
    
    import (
    	"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("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="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: "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

    new Configuration(name: string, args: ConfigurationArgs, opts?: CustomResourceOptions);
    @overload
    def Configuration(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      configuration_name: Optional[str] = None,
                      current_value: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      server_name: Optional[str] = None,
                      source: Optional[Union[str, ConfigurationSource]] = None,
                      value: Optional[str] = None)
    @overload
    def Configuration(resource_name: str,
                      args: ConfigurationArgs,
                      opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The Configuration resource accepts the following input properties:

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    ServerName string

    The name of the server.

    ConfigurationName string

    The name of the server configuration.

    CurrentValue string

    Current value of the configuration.

    Source string | Pulumi.AzureNative.DBforMySQL.ConfigurationSource

    Source of the configuration.

    Value string

    Value of the configuration.

    ResourceGroupName string

    The name of the resource group. The name is case insensitive.

    ServerName string

    The name of the server.

    ConfigurationName string

    The name of the server configuration.

    CurrentValue string

    Current value of the configuration.

    Source string | ConfigurationSource

    Source of the configuration.

    Value string

    Value of the configuration.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    serverName String

    The name of the server.

    configurationName String

    The name of the server configuration.

    currentValue String

    Current value of the configuration.

    source String | ConfigurationSource

    Source of the configuration.

    value String

    Value of the configuration.

    resourceGroupName string

    The name of the resource group. The name is case insensitive.

    serverName string

    The name of the server.

    configurationName string

    The name of the server configuration.

    currentValue string

    Current value of the configuration.

    source string | ConfigurationSource

    Source of the configuration.

    value string

    Value of the configuration.

    resource_group_name str

    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 | ConfigurationSource

    Source of the configuration.

    value str

    Value of the configuration.

    resourceGroupName String

    The name of the resource group. The name is case insensitive.

    serverName String

    The name of the server.

    configurationName String

    The name of the server configuration.

    currentValue 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:

    AllowedValues string

    Allowed values of the configuration.

    DataType string

    Data type of the configuration.

    DefaultValue string

    Default value of the configuration.

    Description string

    Description of the configuration.

    DocumentationLink string

    The link used to get the document from community or Azure site.

    Id string

    The provider-assigned unique ID for this managed resource.

    IsConfigPendingRestart string

    If is the configuration pending restart or not.

    IsDynamicConfig string

    If is the configuration dynamic.

    IsReadOnly string

    If is the configuration read only.

    Name string

    The name of the resource

    SystemData Pulumi.AzureNative.DBforMySQL.Outputs.SystemDataResponse

    The system metadata relating to this resource.

    Type string

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    AllowedValues string

    Allowed values of the configuration.

    DataType string

    Data type of the configuration.

    DefaultValue string

    Default value of the configuration.

    Description string

    Description of the configuration.

    DocumentationLink string

    The link used to get the document from community or Azure site.

    Id string

    The provider-assigned unique ID for this managed resource.

    IsConfigPendingRestart string

    If is the configuration pending restart or not.

    IsDynamicConfig string

    If is the configuration dynamic.

    IsReadOnly string

    If is the configuration read only.

    Name string

    The name of the resource

    SystemData SystemDataResponse

    The system metadata relating to this resource.

    Type string

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    allowedValues String

    Allowed values of the configuration.

    dataType String

    Data type of the configuration.

    defaultValue String

    Default value of the configuration.

    description String

    Description of the configuration.

    documentationLink String

    The link used to get the document from community or Azure site.

    id String

    The provider-assigned unique ID for this managed resource.

    isConfigPendingRestart String

    If is the configuration pending restart or not.

    isDynamicConfig String

    If is the configuration dynamic.

    isReadOnly String

    If is the configuration read only.

    name String

    The name of the resource

    systemData SystemDataResponse

    The system metadata relating to this resource.

    type String

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    allowedValues string

    Allowed values of the configuration.

    dataType string

    Data type of the configuration.

    defaultValue string

    Default value of the configuration.

    description string

    Description of the configuration.

    documentationLink string

    The link used to get the document from community or Azure site.

    id string

    The provider-assigned unique ID for this managed resource.

    isConfigPendingRestart string

    If is the configuration pending restart or not.

    isDynamicConfig string

    If is the configuration dynamic.

    isReadOnly string

    If is the configuration read only.

    name string

    The name of the resource

    systemData SystemDataResponse

    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_pending_restart str

    If is the configuration pending restart or not.

    is_dynamic_config str

    If is the configuration dynamic.

    is_read_only str

    If is the configuration read only.

    name str

    The name of the resource

    system_data SystemDataResponse

    The system metadata relating to this resource.

    type str

    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    allowedValues String

    Allowed values of the configuration.

    dataType String

    Data type of the configuration.

    defaultValue String

    Default value of the configuration.

    description String

    Description of the configuration.

    documentationLink String

    The link used to get the document from community or Azure site.

    id String

    The provider-assigned unique ID for this managed resource.

    isConfigPendingRestart String

    If is the configuration pending restart or not.

    isDynamicConfig String

    If is the configuration dynamic.

    isReadOnly String

    If is the configuration read only.

    name String

    The name of the resource

    systemData 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
    ConfigurationSource_System_Default
    system-default
    ConfigurationSource_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

    CreatedAt string

    The timestamp of resource creation (UTC).

    CreatedBy string

    The identity that created the resource.

    CreatedByType string

    The type of identity that created the resource.

    LastModifiedAt string

    The timestamp of resource last modification (UTC)

    LastModifiedBy string

    The identity that last modified the resource.

    LastModifiedByType string

    The type of identity that last modified the resource.

    CreatedAt string

    The timestamp of resource creation (UTC).

    CreatedBy string

    The identity that created the resource.

    CreatedByType string

    The type of identity that created the resource.

    LastModifiedAt string

    The timestamp of resource last modification (UTC)

    LastModifiedBy string

    The identity that last modified the resource.

    LastModifiedByType string

    The type of identity that last modified the resource.

    createdAt String

    The timestamp of resource creation (UTC).

    createdBy String

    The identity that created the resource.

    createdByType String

    The type of identity that created the resource.

    lastModifiedAt String

    The timestamp of resource last modification (UTC)

    lastModifiedBy String

    The identity that last modified the resource.

    lastModifiedByType String

    The type of identity that last modified the resource.

    createdAt string

    The timestamp of resource creation (UTC).

    createdBy string

    The identity that created the resource.

    createdByType string

    The type of identity that created the resource.

    lastModifiedAt string

    The timestamp of resource last modification (UTC)

    lastModifiedBy string

    The identity that last modified the resource.

    lastModifiedByType string

    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_type str

    The type of identity that created the resource.

    last_modified_at str

    The timestamp of resource last modification (UTC)

    last_modified_by str

    The identity that last modified the resource.

    last_modified_by_type str

    The type of identity that last modified the resource.

    createdAt String

    The timestamp of resource creation (UTC).

    createdBy String

    The identity that created the resource.

    createdByType String

    The type of identity that created the resource.

    lastModifiedAt String

    The timestamp of resource last modification (UTC)

    lastModifiedBy String

    The identity that last modified the resource.

    lastModifiedByType String

    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} 
    

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.21.2 published on Friday, Dec 8, 2023 by Pulumi