![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.insights.kotlin.PrivateEndpointConnectionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.insights.kotlin
import com.pulumi.azurenative.insights.PrivateEndpointConnectionArgs.builder
import com.pulumi.azurenative.insights.kotlin.inputs.PrivateLinkServiceConnectionStateArgs
import com.pulumi.azurenative.insights.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: 2021-07-01-preview. Prior API version in Azure Native 1.x: 2019-10-17-preview.
* Other available API versions: 2019-10-17-preview.
* ## Example Usage
* ### Approve or reject a private endpoint connection with a given name.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var privateEndpointConnection = new AzureNative.Insights.PrivateEndpointConnection("privateEndpointConnection", new()
* {
* PrivateEndpointConnectionName = "private-endpoint-connection-name",
* PrivateLinkServiceConnectionState = new AzureNative.Insights.Inputs.PrivateLinkServiceConnectionStateArgs
* {
* Description = "Approved by [email protected]",
* Status = AzureNative.Insights.PrivateEndpointServiceConnectionStatus.Approved,
* },
* ResourceGroupName = "MyResourceGroup",
* ScopeName = "MyPrivateLinkScope",
* });
* });
* ```
* ```go
* package main
* import (
* insights "github.com/pulumi/pulumi-azure-native-sdk/insights/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := insights.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &insights.PrivateEndpointConnectionArgs{
* PrivateEndpointConnectionName: pulumi.String("private-endpoint-connection-name"),
* PrivateLinkServiceConnectionState: &insights.PrivateLinkServiceConnectionStateArgs{
* Description: pulumi.String("Approved by [email protected]"),
* Status: pulumi.String(insights.PrivateEndpointServiceConnectionStatusApproved),
* },
* ResourceGroupName: pulumi.String("MyResourceGroup"),
* ScopeName: pulumi.String("MyPrivateLinkScope"),
* })
* 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.insights.PrivateEndpointConnection;
* import com.pulumi.azurenative.insights.PrivateEndpointConnectionArgs;
* import com.pulumi.azurenative.insights.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 privateEndpointConnection = new PrivateEndpointConnection("privateEndpointConnection", PrivateEndpointConnectionArgs.builder()
* .privateEndpointConnectionName("private-endpoint-connection-name")
* .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
* .description("Approved by [email protected]")
* .status("Approved")
* .build())
* .resourceGroupName("MyResourceGroup")
* .scopeName("MyPrivateLinkScope")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:insights:PrivateEndpointConnection private-endpoint-connection-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @property privateEndpointConnectionName The name of the private endpoint connection.
* @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.
* @property scopeName The name of the Azure Monitor PrivateLinkScope resource.
*/
public data class PrivateEndpointConnectionArgs(
public val privateEndpointConnectionName: Output? = null,
public val privateLinkServiceConnectionState: Output? =
null,
public val resourceGroupName: Output? = null,
public val scopeName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.insights.PrivateEndpointConnectionArgs =
com.pulumi.azurenative.insights.PrivateEndpointConnectionArgs.builder()
.privateEndpointConnectionName(privateEndpointConnectionName?.applyValue({ args0 -> args0 }))
.privateLinkServiceConnectionState(
privateLinkServiceConnectionState?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.scopeName(scopeName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PrivateEndpointConnectionArgs].
*/
@PulumiTagMarker
public class PrivateEndpointConnectionArgsBuilder internal constructor() {
private var privateEndpointConnectionName: Output? = null
private var privateLinkServiceConnectionState: Output? =
null
private var resourceGroupName: Output? = null
private var scopeName: Output? = null
/**
* @param value The name of the private endpoint connection.
*/
@JvmName("dyysllubluwpbqqq")
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("pekcharybgbtmfsb")
public suspend fun privateLinkServiceConnectionState(`value`: Output) {
this.privateLinkServiceConnectionState = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("yecxfncrpslsjklk")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the Azure Monitor PrivateLinkScope resource.
*/
@JvmName("gkoypjvesaqfwxyw")
public suspend fun scopeName(`value`: Output) {
this.scopeName = value
}
/**
* @param value The name of the private endpoint connection.
*/
@JvmName("ytdrmhfbklygevfb")
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("jqkcfpwbcawyuwse")
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("yylksnenkflbbbok")
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("auwpfauqjdeosfru")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the Azure Monitor PrivateLinkScope resource.
*/
@JvmName("gukgiwfwjtjlrxyc")
public suspend fun scopeName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scopeName = mapped
}
internal fun build(): PrivateEndpointConnectionArgs = PrivateEndpointConnectionArgs(
privateEndpointConnectionName = privateEndpointConnectionName,
privateLinkServiceConnectionState = privateLinkServiceConnectionState,
resourceGroupName = resourceGroupName,
scopeName = scopeName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy