![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.hybridcompute.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.hybridcompute.kotlin
import com.pulumi.azurenative.hybridcompute.PrivateEndpointConnectionArgs.builder
import com.pulumi.azurenative.hybridcompute.kotlin.inputs.PrivateEndpointConnectionPropertiesArgs
import com.pulumi.azurenative.hybridcompute.kotlin.inputs.PrivateEndpointConnectionPropertiesArgsBuilder
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
/**
* A private endpoint connection
* Azure REST API version: 2022-12-27. Prior API version in Azure Native 1.x: 2021-03-25-preview.
* Other available API versions: 2020-08-15-preview, 2023-06-20-preview, 2023-10-03-preview, 2024-03-31-preview, 2024-05-20-preview, 2024-07-10.
* ## 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.HybridCompute.PrivateEndpointConnection("privateEndpointConnection", new()
* {
* PrivateEndpointConnectionName = "private-endpoint-connection-name",
* Properties = new AzureNative.HybridCompute.Inputs.PrivateEndpointConnectionPropertiesArgs
* {
* PrivateLinkServiceConnectionState = new AzureNative.HybridCompute.Inputs.PrivateLinkServiceConnectionStatePropertyArgs
* {
* Description = "Approved by [email protected]",
* Status = "Approved",
* },
* },
* ResourceGroupName = "myResourceGroup",
* ScopeName = "myPrivateLinkScope",
* });
* });
* ```
* ```go
* package main
* import (
* hybridcompute "github.com/pulumi/pulumi-azure-native-sdk/hybridcompute/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := hybridcompute.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &hybridcompute.PrivateEndpointConnectionArgs{
* PrivateEndpointConnectionName: pulumi.String("private-endpoint-connection-name"),
* Properties: &hybridcompute.PrivateEndpointConnectionPropertiesArgs{
* PrivateLinkServiceConnectionState: &hybridcompute.PrivateLinkServiceConnectionStatePropertyArgs{
* Description: pulumi.String("Approved by [email protected]"),
* Status: pulumi.String("Approved"),
* },
* },
* 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.hybridcompute.PrivateEndpointConnection;
* import com.pulumi.azurenative.hybridcompute.PrivateEndpointConnectionArgs;
* import com.pulumi.azurenative.hybridcompute.inputs.PrivateEndpointConnectionPropertiesArgs;
* import com.pulumi.azurenative.hybridcompute.inputs.PrivateLinkServiceConnectionStatePropertyArgs;
* 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")
* .properties(PrivateEndpointConnectionPropertiesArgs.builder()
* .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStatePropertyArgs.builder()
* .description("Approved by [email protected]")
* .status("Approved")
* .build())
* .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:hybridcompute:PrivateEndpointConnection private-endpoint-connection-name /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @property privateEndpointConnectionName The name of the private endpoint connection.
* @property properties Resource properties.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property scopeName The name of the Azure Arc PrivateLinkScope resource.
*/
public data class PrivateEndpointConnectionArgs(
public val privateEndpointConnectionName: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val scopeName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.hybridcompute.PrivateEndpointConnectionArgs =
com.pulumi.azurenative.hybridcompute.PrivateEndpointConnectionArgs.builder()
.privateEndpointConnectionName(privateEndpointConnectionName?.applyValue({ args0 -> args0 }))
.properties(properties?.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 properties: Output? = null
private var resourceGroupName: Output? = null
private var scopeName: Output? = null
/**
* @param value The name of the private endpoint connection.
*/
@JvmName("cmdnbxoeouplkjbw")
public suspend fun privateEndpointConnectionName(`value`: Output) {
this.privateEndpointConnectionName = value
}
/**
* @param value Resource properties.
*/
@JvmName("mltgfqthemmbkkci")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("ligioepfjmylecjb")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the Azure Arc PrivateLinkScope resource.
*/
@JvmName("qijpgvbvehqtprns")
public suspend fun scopeName(`value`: Output) {
this.scopeName = value
}
/**
* @param value The name of the private endpoint connection.
*/
@JvmName("scpyeenpjtydoptc")
public suspend fun privateEndpointConnectionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateEndpointConnectionName = mapped
}
/**
* @param value Resource properties.
*/
@JvmName("fnsatjlsicwpbigj")
public suspend fun properties(`value`: PrivateEndpointConnectionPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument Resource properties.
*/
@JvmName("ucchxctqcxgfamte")
public suspend fun properties(argument: suspend PrivateEndpointConnectionPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = PrivateEndpointConnectionPropertiesArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.properties = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("xmpcatcpkfyouwae")
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 Arc PrivateLinkScope resource.
*/
@JvmName("wkqhihcpvlodelyn")
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,
properties = properties,
resourceGroupName = resourceGroupName,
scopeName = scopeName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy