ControllerArgs

data class ControllerArgs(val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val targetContainerHostCredentialsBase64: Output<String>? = null, val targetContainerHostResourceId: Output<String>? = null) : ConvertibleToJava<ControllerArgs>

Uses Azure REST API version 2019-04-01. In version 2.x of the Azure Native provider, it used API version 2019-04-01.

Example Usage

ControllersCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var controller = new AzureNative.DevSpaces.Controller("controller", new()
{
Location = "eastus",
Name = "myControllerResource",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.DevSpaces.Inputs.SkuArgs
{
Name = AzureNative.DevSpaces.SkuName.S1,
Tier = AzureNative.DevSpaces.SkuTier.Standard,
},
Tags = null,
TargetContainerHostCredentialsBase64 = "QmFzZTY0IEVuY29kZWQgVmFsdWUK",
TargetContainerHostResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster",
});
});
package main
import (
devspaces "github.com/pulumi/pulumi-azure-native-sdk/devspaces/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devspaces.NewController(ctx, "controller", &devspaces.ControllerArgs{
Location: pulumi.String("eastus"),
Name: pulumi.String("myControllerResource"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &devspaces.SkuArgs{
Name: pulumi.String(devspaces.SkuNameS1),
Tier: pulumi.String(devspaces.SkuTierStandard),
},
Tags: pulumi.StringMap{},
TargetContainerHostCredentialsBase64: pulumi.String("QmFzZTY0IEVuY29kZWQgVmFsdWUK"),
TargetContainerHostResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster"),
})
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.devspaces.Controller;
import com.pulumi.azurenative.devspaces.ControllerArgs;
import com.pulumi.azurenative.devspaces.inputs.SkuArgs;
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 controller = new Controller("controller", ControllerArgs.builder()
.location("eastus")
.name("myControllerResource")
.resourceGroupName("myResourceGroup")
.sku(SkuArgs.builder()
.name("S1")
.tier("Standard")
.build())
.tags(Map.ofEntries(
))
.targetContainerHostCredentialsBase64("QmFzZTY0IEVuY29kZWQgVmFsdWUK")
.targetContainerHostResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/myCluster")
.build());
}
}

Import

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

$ pulumi import azure-native:devspaces:Controller myControllerResource /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevSpaces/controllers/{name}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null, targetContainerHostCredentialsBase64: Output<String>? = null, targetContainerHostResourceId: Output<String>? = null)

Properties

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

Region where the Azure resource is located.

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

Name of the resource.

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

Resource group to which the resource belongs.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

Model representing SKU for Azure Dev Spaces Controller.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Tags for the Azure resource.

Link copied to clipboard

Credentials of the target container host (base64).

Link copied to clipboard

Resource ID of the target container host

Functions

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