ConfigServerArgs

data class ConfigServerArgs(val properties: Output<ConfigServerPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null) : ConvertibleToJava<ConfigServerArgs>

Config Server resource API Version: 2020-07-01.

Example Usage

ConfigServers_UpdatePut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configServer = new AzureNative.AppPlatform.ConfigServer("configServer", new()
{
Properties = new AzureNative.AppPlatform.Inputs.ConfigServerPropertiesArgs
{
ConfigServer = new AzureNative.AppPlatform.Inputs.ConfigServerSettingsArgs
{
GitProperty = new AzureNative.AppPlatform.Inputs.ConfigServerGitPropertyArgs
{
Label = "master",
SearchPaths = new[]
{
"/",
},
Uri = "https://github.com/fake-user/fake-repository.git",
},
},
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.appplatform.ConfigServer;
import com.pulumi.azurenative.appplatform.ConfigServerArgs;
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 configServer = new ConfigServer("configServer", ConfigServerArgs.builder()
.properties(Map.of("configServer", Map.of("gitProperty", Map.ofEntries(
Map.entry("label", "master"),
Map.entry("searchPaths", "/"),
Map.entry("uri", "https://github.com/fake-user/fake-repository.git")
))))
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:appplatform:ConfigServer default /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configServers/default

Constructors

Link copied to clipboard
constructor(properties: Output<ConfigServerPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null)

Properties

Link copied to clipboard

Properties of the Config Server resource

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

Link copied to clipboard
val serviceName: Output<String>? = null

The name of the Service resource.

Functions

Link copied to clipboard
open override fun toJava(): ConfigServerArgs