PrivateEndpointConnectionArgs

data class PrivateEndpointConnectionArgs(val privateEndpointConnectionName: Output<String>? = null, val properties: Output<PrivateEndpointConnectionPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null) : ConvertibleToJava<PrivateEndpointConnectionArgs>

The private endpoint connection of an IotHub API Version: 2020-08-31.

Example Usage

PrivateEndpointConnection_Update

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.Devices.PrivateEndpointConnection("privateEndpointConnection", new()
{
PrivateEndpointConnectionName = "myPrivateEndpointConnection",
Properties = new AzureNative.Devices.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.Devices.Inputs.PrivateLinkServiceConnectionStateArgs
{
Description = "Approved by johndoe@contoso.com",
Status = "Approved",
},
},
ResourceGroupName = "myResourceGroup",
ResourceName = "testHub",
});
});
package main
import (
devices "github.com/pulumi/pulumi-azure-native-sdk/devices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devices.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &devices.PrivateEndpointConnectionArgs{
PrivateEndpointConnectionName: pulumi.String("myPrivateEndpointConnection"),
Properties: devices.PrivateEndpointConnectionPropertiesResponse{
PrivateLinkServiceConnectionState: &devices.PrivateLinkServiceConnectionStateArgs{
Description: pulumi.String("Approved by johndoe@contoso.com"),
Status: pulumi.String("Approved"),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ResourceName: pulumi.String("testHub"),
})
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.devices.PrivateEndpointConnection;
import com.pulumi.azurenative.devices.PrivateEndpointConnectionArgs;
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 privateEndpointConnection = new PrivateEndpointConnection("privateEndpointConnection", PrivateEndpointConnectionArgs.builder()
.privateEndpointConnectionName("myPrivateEndpointConnection")
.properties(Map.of("privateLinkServiceConnectionState", Map.ofEntries(
Map.entry("description", "Approved by johndoe@contoso.com"),
Map.entry("status", "Approved")
)))
.resourceGroupName("myResourceGroup")
.resourceName("testHub")
.build());
}
}

Import

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

$ pulumi import azure-native:devices:PrivateEndpointConnection myPrivateEndpointConnection /subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/PrivateEndpointConnections/myPrivateEndpointConnection

Constructors

Link copied to clipboard
constructor(privateEndpointConnectionName: Output<String>? = null, properties: Output<PrivateEndpointConnectionPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null)

Properties

Link copied to clipboard

The name of the private endpoint connection

Link copied to clipboard

The properties of a private endpoint connection

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

The name of the resource group that contains the IoT hub.

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

The name of the IoT hub.

Functions

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