Managed Environment Private Endpoint Connection Args
The Private Endpoint Connection resource. Uses Azure REST API version 2024-10-02-preview. In version 2.x of the Azure Native provider, it used API version 2024-02-02-preview. Other available API versions: 2024-02-02-preview, 2024-08-02-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native app [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Update a Private Endpoint Connection by Managed Environment
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedEnvironmentPrivateEndpointConnection = new AzureNative.App.ManagedEnvironmentPrivateEndpointConnection("managedEnvironmentPrivateEndpointConnection", new()
{
EnvironmentName = "managedEnv",
PrivateEndpointConnectionName = "jlaw-demo1",
PrivateLinkServiceConnectionState = new AzureNative.App.Inputs.PrivateLinkServiceConnectionStateArgs
{
ActionsRequired = "None",
Status = AzureNative.App.PrivateEndpointServiceConnectionStatus.Approved,
},
ResourceGroupName = "examplerg",
});
});
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.NewManagedEnvironmentPrivateEndpointConnection(ctx, "managedEnvironmentPrivateEndpointConnection", &app.ManagedEnvironmentPrivateEndpointConnectionArgs{
EnvironmentName: pulumi.String("managedEnv"),
PrivateEndpointConnectionName: pulumi.String("jlaw-demo1"),
PrivateLinkServiceConnectionState: &app.PrivateLinkServiceConnectionStateArgs{
ActionsRequired: pulumi.String("None"),
Status: pulumi.String(app.PrivateEndpointServiceConnectionStatusApproved),
},
ResourceGroupName: pulumi.String("examplerg"),
})
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.app.ManagedEnvironmentPrivateEndpointConnection;
import com.pulumi.azurenative.app.ManagedEnvironmentPrivateEndpointConnectionArgs;
import com.pulumi.azurenative.app.inputs.PrivateLinkServiceConnectionStateArgs;
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 managedEnvironmentPrivateEndpointConnection = new ManagedEnvironmentPrivateEndpointConnection("managedEnvironmentPrivateEndpointConnection", ManagedEnvironmentPrivateEndpointConnectionArgs.builder()
.environmentName("managedEnv")
.privateEndpointConnectionName("jlaw-demo1")
.privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
.actionsRequired("None")
.status("Approved")
.build())
.resourceGroupName("examplerg")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:app:ManagedEnvironmentPrivateEndpointConnection jlaw-demo1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}
Constructors
Properties
Name of the Managed Environment.
The name of the private endpoint connection associated with the Azure resource.
A collection of information about the state of the connection between service consumer and provider.
The name of the resource group. The name is case insensitive.