PrivateEndpointConnectionArgs

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

Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace. Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-01-01-preview. Other available API versions: 2023-01-01-preview, 2023-09-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native notificationhubs [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

PrivateEndpointConnections_Update

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.NotificationHubs.PrivateEndpointConnection("privateEndpointConnection", new()
{
NamespaceName = "nh-sdk-ns",
PrivateEndpointConnectionName = "nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e",
Properties = new AzureNative.NotificationHubs.Inputs.PrivateEndpointConnectionPropertiesArgs
{
PrivateLinkServiceConnectionState = new AzureNative.NotificationHubs.Inputs.RemotePrivateLinkServiceConnectionStateArgs
{
Status = AzureNative.NotificationHubs.PrivateLinkConnectionStatus.Approved,
},
},
ResourceGroupName = "5ktrial",
});
});
package main
import (
notificationhubs "github.com/pulumi/pulumi-azure-native-sdk/notificationhubs/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := notificationhubs.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &notificationhubs.PrivateEndpointConnectionArgs{
NamespaceName: pulumi.String("nh-sdk-ns"),
PrivateEndpointConnectionName: pulumi.String("nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e"),
Properties: &notificationhubs.PrivateEndpointConnectionPropertiesArgs{
PrivateLinkServiceConnectionState: &notificationhubs.RemotePrivateLinkServiceConnectionStateArgs{
Status: pulumi.String(notificationhubs.PrivateLinkConnectionStatusApproved),
},
},
ResourceGroupName: pulumi.String("5ktrial"),
})
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.notificationhubs.PrivateEndpointConnection;
import com.pulumi.azurenative.notificationhubs.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.notificationhubs.inputs.PrivateEndpointConnectionPropertiesArgs;
import com.pulumi.azurenative.notificationhubs.inputs.RemotePrivateLinkServiceConnectionStateArgs;
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()
.namespaceName("nh-sdk-ns")
.privateEndpointConnectionName("nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e")
.properties(PrivateEndpointConnectionPropertiesArgs.builder()
.privateLinkServiceConnectionState(RemotePrivateLinkServiceConnectionStateArgs.builder()
.status("Approved")
.build())
.build())
.resourceGroupName("5ktrial")
.build());
}
}

Import

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

$ pulumi import azure-native:notificationhubs:PrivateEndpointConnection nh-sdk-ns.1fa229cd-bf3f-47f0-8c49-afb36723997e /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}

Constructors

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

Properties

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

Namespace name

Link copied to clipboard

Private Endpoint Connection Name

Link copied to clipboard

Private Endpoint Connection properties.

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

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

Functions

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