HybridConnectionArgs

data class HybridConnectionArgs(val name: Output<String>? = null, val relayNamespaceName: Output<String>? = null, val requiresClientAuthorization: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val userMetadata: Output<String>? = null) : ConvertibleToJava<HybridConnectionArgs>

Manages an Azure Relay Hybrid Connection.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.relay.Namespace;
import com.pulumi.azure.relay.NamespaceArgs;
import com.pulumi.azure.relay.HybridConnection;
import com.pulumi.azure.relay.HybridConnectionArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Standard")
.tags(Map.of("source", "managed"))
.build());
var exampleHybridConnection = new HybridConnection("exampleHybridConnection", HybridConnectionArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.relayNamespaceName(exampleNamespace.name())
.requiresClientAuthorization(false)
.userMetadata("testmetadata")
.build());
}
}

Import

Relay Hybrid Connection's can be imported using the resource id, e.g.

$ pulumi import azure:relay/hybridConnection:HybridConnection relay1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Relay/namespaces/relay1/hybridConnections/hconn1

Constructors

Link copied to clipboard
fun HybridConnectionArgs(name: Output<String>? = null, relayNamespaceName: Output<String>? = null, requiresClientAuthorization: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, userMetadata: Output<String>? = null)

Functions

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

Properties

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

Specifies the name of the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

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

The name of the Azure Relay in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

Link copied to clipboard

Specify if client authorization is needed for this hybrid connection. True by default. Changing this forces a new resource to be created. Defaults to true.

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

The name of the resource group in which to create the Azure Relay Hybrid Connection. Changing this forces a new resource to be created.

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

The usermetadata is a placeholder to store user-defined string data for the hybrid connection endpoint. For example, it can be used to store descriptive data, such as a list of teams and their contact information. Also, user-defined configuration settings can be stored.