Private Endpoint Connection Args
Properties of the PrivateEndpointConnection. Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01-preview. Other available API versions: 2018-01-01-preview, 2021-01-01-preview, 2021-06-01-preview, 2021-11-01, 2022-01-01-preview, 2022-10-01-preview, 2023-01-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native eventhub [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
NameSpacePrivateEndPointConnectionCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateEndpointConnection = new AzureNative.EventHub.PrivateEndpointConnection("privateEndpointConnection", new()
{
NamespaceName = "sdk-Namespace-2924",
PrivateEndpoint = new AzureNative.EventHub.Inputs.PrivateEndpointArgs
{
Id = "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847",
},
PrivateEndpointConnectionName = "privateEndpointConnectionName",
PrivateLinkServiceConnectionState = new AzureNative.EventHub.Inputs.ConnectionStateArgs
{
Description = "testing",
Status = AzureNative.EventHub.PrivateLinkConnectionStatus.Rejected,
},
ProvisioningState = AzureNative.EventHub.EndPointProvisioningState.Succeeded,
ResourceGroupName = "ArunMonocle",
});
});
package main
import (
eventhub "github.com/pulumi/pulumi-azure-native-sdk/eventhub/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := eventhub.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &eventhub.PrivateEndpointConnectionArgs{
NamespaceName: pulumi.String("sdk-Namespace-2924"),
PrivateEndpoint: &eventhub.PrivateEndpointArgs{
Id: pulumi.String("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"),
},
PrivateEndpointConnectionName: pulumi.String("privateEndpointConnectionName"),
PrivateLinkServiceConnectionState: &eventhub.ConnectionStateArgs{
Description: pulumi.String("testing"),
Status: pulumi.String(eventhub.PrivateLinkConnectionStatusRejected),
},
ProvisioningState: pulumi.String(eventhub.EndPointProvisioningStateSucceeded),
ResourceGroupName: pulumi.String("ArunMonocle"),
})
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.eventhub.PrivateEndpointConnection;
import com.pulumi.azurenative.eventhub.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.eventhub.inputs.PrivateEndpointArgs;
import com.pulumi.azurenative.eventhub.inputs.ConnectionStateArgs;
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("sdk-Namespace-2924")
.privateEndpoint(PrivateEndpointArgs.builder()
.id("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847")
.build())
.privateEndpointConnectionName("privateEndpointConnectionName")
.privateLinkServiceConnectionState(ConnectionStateArgs.builder()
.description("testing")
.status("Rejected")
.build())
.provisioningState("Succeeded")
.resourceGroupName("ArunMonocle")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:eventhub:PrivateEndpointConnection 928c44d5-b7c6-423b-b6fa-811e0c27b3e0 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}
Constructors
Properties
The Namespace name
The Private Endpoint resource for this Connection.
The PrivateEndpointConnection name
Details about the state of the connection.
Provisioning state of the Private Endpoint Connection.
Name of the resource group within the azure subscription.