HybridConnection

class HybridConnection : KotlinCustomResource

Description of hybrid connection resource. Uses Azure REST API version 2021-11-01. In version 1.x of the Azure Native provider, it used API version 2017-04-01. Other available API versions: 2024-01-01.

Example Usage

RelayHybridConnectionCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var hybridConnection = new AzureNative.Relay.HybridConnection("hybridConnection", new()
{
HybridConnectionName = "example-Relay-Hybrid-01",
NamespaceName = "example-RelayNamespace-01",
RequiresClientAuthorization = true,
ResourceGroupName = "resourcegroup",
});
});
package main
import (
relay "github.com/pulumi/pulumi-azure-native-sdk/relay/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relay.NewHybridConnection(ctx, "hybridConnection", &relay.HybridConnectionArgs{
HybridConnectionName: pulumi.String("example-Relay-Hybrid-01"),
NamespaceName: pulumi.String("example-RelayNamespace-01"),
RequiresClientAuthorization: pulumi.Bool(true),
ResourceGroupName: pulumi.String("resourcegroup"),
})
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.relay.HybridConnection;
import com.pulumi.azurenative.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 hybridConnection = new HybridConnection("hybridConnection", HybridConnectionArgs.builder()
.hybridConnectionName("example-Relay-Hybrid-01")
.namespaceName("example-RelayNamespace-01")
.requiresClientAuthorization(true)
.resourceGroupName("resourcegroup")
.build());
}
}

Import

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

$ pulumi import azure-native:relay:HybridConnection example-Relay-Hybrid-01 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/hybridConnections/{hybridConnectionName}

Properties

Link copied to clipboard
val createdAt: Output<String>

The time the hybrid connection was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val listenerCount: Output<Int>

The number of listeners for this hybrid connection. Note that min : 1 and max:25 are supported.

Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns true if client authorization is needed for this hybrid connection; otherwise, false.

Link copied to clipboard

The system meta data relating to this resource.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs"

Link copied to clipboard
val updatedAt: Output<String>

The time the namespace was updated.

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

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.