
com.pulumi.azurenative.app.kotlin.ManagedEnvironmentPrivateEndpointConnectionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin
import com.pulumi.azurenative.app.ManagedEnvironmentPrivateEndpointConnectionArgs.builder
import com.pulumi.azurenative.app.kotlin.inputs.PrivateLinkServiceConnectionStateArgs
import com.pulumi.azurenative.app.kotlin.inputs.PrivateLinkServiceConnectionStateArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* The Private Endpoint Connection resource.
* Azure REST API version: 2024-02-02-preview.
* ## Example Usage
* ### Update a Private Endpoint Connection by Managed Environment
* ```csharp
* 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",
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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.
* ```sh
* $ pulumi import azure-native:app:ManagedEnvironmentPrivateEndpointConnection jlaw-demo1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @property environmentName Name of the Managed Environment.
* @property privateEndpointConnectionName The name of the private endpoint connection associated with the Azure resource.
* @property privateLinkServiceConnectionState A collection of information about the state of the connection between service consumer and provider.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
*/
public data class ManagedEnvironmentPrivateEndpointConnectionArgs(
public val environmentName: Output? = null,
public val privateEndpointConnectionName: Output? = null,
public val privateLinkServiceConnectionState: Output? =
null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.ManagedEnvironmentPrivateEndpointConnectionArgs = com.pulumi.azurenative.app.ManagedEnvironmentPrivateEndpointConnectionArgs.builder()
.environmentName(environmentName?.applyValue({ args0 -> args0 }))
.privateEndpointConnectionName(privateEndpointConnectionName?.applyValue({ args0 -> args0 }))
.privateLinkServiceConnectionState(
privateLinkServiceConnectionState?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ManagedEnvironmentPrivateEndpointConnectionArgs].
*/
@PulumiTagMarker
public class ManagedEnvironmentPrivateEndpointConnectionArgsBuilder internal constructor() {
private var environmentName: Output? = null
private var privateEndpointConnectionName: Output? = null
private var privateLinkServiceConnectionState: Output? =
null
private var resourceGroupName: Output? = null
/**
* @param value Name of the Managed Environment.
*/
@JvmName("xkuysuoycoijocwb")
public suspend fun environmentName(`value`: Output) {
this.environmentName = value
}
/**
* @param value The name of the private endpoint connection associated with the Azure resource.
*/
@JvmName("ljwjiyoasbtmurvs")
public suspend fun privateEndpointConnectionName(`value`: Output) {
this.privateEndpointConnectionName = value
}
/**
* @param value A collection of information about the state of the connection between service consumer and provider.
*/
@JvmName("khsacrjbdrtkggvf")
public suspend fun privateLinkServiceConnectionState(`value`: Output) {
this.privateLinkServiceConnectionState = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("joxvxtrwhujkdgsx")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Name of the Managed Environment.
*/
@JvmName("pbeodgidkppjxixa")
public suspend fun environmentName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.environmentName = mapped
}
/**
* @param value The name of the private endpoint connection associated with the Azure resource.
*/
@JvmName("xjglmmvbsvacpxtk")
public suspend fun privateEndpointConnectionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateEndpointConnectionName = mapped
}
/**
* @param value A collection of information about the state of the connection between service consumer and provider.
*/
@JvmName("yioqqooodosvhbdy")
public suspend fun privateLinkServiceConnectionState(`value`: PrivateLinkServiceConnectionStateArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateLinkServiceConnectionState = mapped
}
/**
* @param argument A collection of information about the state of the connection between service consumer and provider.
*/
@JvmName("krexcnmirbmgenab")
public suspend fun privateLinkServiceConnectionState(argument: suspend PrivateLinkServiceConnectionStateArgsBuilder.() -> Unit) {
val toBeMapped = PrivateLinkServiceConnectionStateArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.privateLinkServiceConnectionState = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("urofduelllrthxnk")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): ManagedEnvironmentPrivateEndpointConnectionArgs =
ManagedEnvironmentPrivateEndpointConnectionArgs(
environmentName = environmentName,
privateEndpointConnectionName = privateEndpointConnectionName,
privateLinkServiceConnectionState = privateLinkServiceConnectionState,
resourceGroupName = resourceGroupName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy