PrivateEndpointConnection

class PrivateEndpointConnection : KotlinCustomResource

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 2021-11-01. Other available API versions: 2021-11-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native relay [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.Relay.PrivateEndpointConnection("privateEndpointConnection", new()
{
NamespaceName = "example-RelayNamespace-5849",
PrivateEndpoint = new AzureNative.Relay.Inputs.PrivateEndpointArgs
{
Id = "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Network/privateEndpoints/ali-relay-pve-1",
},
PrivateEndpointConnectionName = "{privateEndpointConnection name}",
PrivateLinkServiceConnectionState = new AzureNative.Relay.Inputs.ConnectionStateArgs
{
Description = "You may pass",
Status = AzureNative.Relay.PrivateLinkConnectionStatus.Approved,
},
ResourceGroupName = "resourcegroup",
});
});
package main
import (
relay "github.com/pulumi/pulumi-azure-native-sdk/relay/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := relay.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &relay.PrivateEndpointConnectionArgs{
NamespaceName: pulumi.String("example-RelayNamespace-5849"),
PrivateEndpoint: &relay.PrivateEndpointArgs{
Id: pulumi.String("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Network/privateEndpoints/ali-relay-pve-1"),
},
PrivateEndpointConnectionName: pulumi.String("{privateEndpointConnection name}"),
PrivateLinkServiceConnectionState: &relay.ConnectionStateArgs{
Description: pulumi.String("You may pass"),
Status: pulumi.String(relay.PrivateLinkConnectionStatusApproved),
},
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.PrivateEndpointConnection;
import com.pulumi.azurenative.relay.PrivateEndpointConnectionArgs;
import com.pulumi.azurenative.relay.inputs.PrivateEndpointArgs;
import com.pulumi.azurenative.relay.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("example-RelayNamespace-5849")
.privateEndpoint(PrivateEndpointArgs.builder()
.id("/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Network/privateEndpoints/ali-relay-pve-1")
.build())
.privateEndpointConnectionName("{privateEndpointConnection name}")
.privateLinkServiceConnectionState(ConnectionStateArgs.builder()
.description("You may pass")
.status("Approved")
.build())
.resourceGroupName("resourcegroup")
.build());
}
}

Import

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

$ pulumi import azure-native:relay:PrivateEndpointConnection {privateEndpointConnection name} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
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

The Private Endpoint resource for this Connection.

Link copied to clipboard

Details about the state of the connection.

Link copied to clipboard

Provisioning state of the Private Endpoint Connection.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
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 urn: Output<String>