ControllerDetailsArgs

data class ControllerDetailsArgs(val location: Output<String>? = null, val purpose: Output<Either<String, ControllerPurpose>>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ControllerDetailsArgs>

Represents an instance of a DNC controller. Uses Azure REST API version 2023-06-27-preview. In version 2.x of the Azure Native provider, it used API version 2021-03-15. Other available API versions: 2021-03-15, 2023-05-18-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native delegatednetwork [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create controller

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var controllerDetails = new AzureNative.DelegatedNetwork.ControllerDetails("controllerDetails", new()
{
Location = "West US",
Purpose = AzureNative.DelegatedNetwork.ControllerPurpose.Test,
ResourceGroupName = "TestRG",
ResourceName = "testcontroller",
});
});
package main
import (
delegatednetwork "github.com/pulumi/pulumi-azure-native-sdk/delegatednetwork/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := delegatednetwork.NewControllerDetails(ctx, "controllerDetails", &delegatednetwork.ControllerDetailsArgs{
Location: pulumi.String("West US"),
Purpose: pulumi.String(delegatednetwork.ControllerPurposeTest),
ResourceGroupName: pulumi.String("TestRG"),
ResourceName: pulumi.String("testcontroller"),
})
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.delegatednetwork.ControllerDetails;
import com.pulumi.azurenative.delegatednetwork.ControllerDetailsArgs;
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 controllerDetails = new ControllerDetails("controllerDetails", ControllerDetailsArgs.builder()
.location("West US")
.purpose("test")
.resourceGroupName("TestRG")
.resourceName("testcontroller")
.build());
}
}

Import

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

$ pulumi import azure-native:delegatednetwork:ControllerDetails testcontroller /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DelegatedNetwork/controller/{resourceName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, purpose: Output<Either<String, ControllerPurpose>>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Location of the resource.

Link copied to clipboard
val purpose: Output<Either<String, ControllerPurpose>>? = null

The purpose of the dnc controller resource.

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

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

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

The name of the resource. It must be a minimum of 3 characters, and a maximum of 63.

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

The resource tags.

Functions

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