
com.pulumi.azurenative.containerservice.kotlin.PrivateEndpointConnectionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.containerservice.kotlin
import com.pulumi.azurenative.containerservice.PrivateEndpointConnectionArgs.builder
import com.pulumi.azurenative.containerservice.kotlin.inputs.PrivateEndpointArgs
import com.pulumi.azurenative.containerservice.kotlin.inputs.PrivateEndpointArgsBuilder
import com.pulumi.azurenative.containerservice.kotlin.inputs.PrivateLinkServiceConnectionStateArgs
import com.pulumi.azurenative.containerservice.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
/**
* A private endpoint connection
* Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-03-01.
* Other available API versions: 2023-05-02-preview, 2023-06-01, 2023-06-02-preview, 2023-07-01, 2023-07-02-preview, 2023-08-01, 2023-08-02-preview, 2023-09-01, 2023-09-02-preview, 2023-10-01, 2023-10-02-preview, 2023-11-01, 2023-11-02-preview, 2024-01-01, 2024-01-02-preview, 2024-02-01, 2024-02-02-preview, 2024-03-02-preview, 2024-04-02-preview, 2024-05-01, 2024-05-02-preview, 2024-06-02-preview, 2024-07-01.
* ## Example Usage
* ### Update Private Endpoint Connection
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var privateEndpointConnection = new AzureNative.ContainerService.PrivateEndpointConnection("privateEndpointConnection", new()
* {
* PrivateEndpointConnectionName = "privateendpointconnection1",
* PrivateLinkServiceConnectionState = new AzureNative.ContainerService.Inputs.PrivateLinkServiceConnectionStateArgs
* {
* Status = AzureNative.ContainerService.ConnectionStatus.Approved,
* },
* ResourceGroupName = "rg1",
* ResourceName = "clustername1",
* });
* });
* ```
* ```go
* package main
* import (
* containerservice "github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := containerservice.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &containerservice.PrivateEndpointConnectionArgs{
* PrivateEndpointConnectionName: pulumi.String("privateendpointconnection1"),
* PrivateLinkServiceConnectionState: &containerservice.PrivateLinkServiceConnectionStateArgs{
* Status: pulumi.String(containerservice.ConnectionStatusApproved),
* },
* ResourceGroupName: pulumi.String("rg1"),
* ResourceName: pulumi.String("clustername1"),
* })
* 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.containerservice.PrivateEndpointConnection;
* import com.pulumi.azurenative.containerservice.PrivateEndpointConnectionArgs;
* import com.pulumi.azurenative.containerservice.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("privateendpointconnection1")
* .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
* .status("Approved")
* .build())
* .resourceGroupName("rg1")
* .resourceName("clustername1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:containerservice:PrivateEndpointConnection privateendpointconnection1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @property privateEndpoint The resource of private endpoint.
* @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 resourceName The name of the managed cluster resource.
*/
public data class PrivateEndpointConnectionArgs(
public val privateEndpoint: Output? = null,
public val privateEndpointConnectionName: Output? = null,
public val privateLinkServiceConnectionState: Output? =
null,
public val resourceGroupName: Output? = null,
public val resourceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.containerservice.PrivateEndpointConnectionArgs =
com.pulumi.azurenative.containerservice.PrivateEndpointConnectionArgs.builder()
.privateEndpoint(privateEndpoint?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.privateEndpointConnectionName(privateEndpointConnectionName?.applyValue({ args0 -> args0 }))
.privateLinkServiceConnectionState(
privateLinkServiceConnectionState?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.resourceName(resourceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PrivateEndpointConnectionArgs].
*/
@PulumiTagMarker
public class PrivateEndpointConnectionArgsBuilder internal constructor() {
private var privateEndpoint: Output? = null
private var privateEndpointConnectionName: Output? = null
private var privateLinkServiceConnectionState: Output? =
null
private var resourceGroupName: Output? = null
private var resourceName: Output? = null
/**
* @param value The resource of private endpoint.
*/
@JvmName("mcmcqrapvlwfokmh")
public suspend fun privateEndpoint(`value`: Output) {
this.privateEndpoint = value
}
/**
* @param value The name of the private endpoint connection.
*/
@JvmName("uentldghgctfimwi")
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("nyhjvucgluxarmmi")
public suspend fun privateLinkServiceConnectionState(`value`: Output) {
this.privateLinkServiceConnectionState = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("xuixbvyjskvbeicx")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the managed cluster resource.
*/
@JvmName("pyaoyqyofmrpehas")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value The resource of private endpoint.
*/
@JvmName("qoypyqkgqlnvehod")
public suspend fun privateEndpoint(`value`: PrivateEndpointArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateEndpoint = mapped
}
/**
* @param argument The resource of private endpoint.
*/
@JvmName("pgakcrqwcfvosjjn")
public suspend fun privateEndpoint(argument: suspend PrivateEndpointArgsBuilder.() -> Unit) {
val toBeMapped = PrivateEndpointArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.privateEndpoint = mapped
}
/**
* @param value The name of the private endpoint connection.
*/
@JvmName("puofcblhdvnncrjr")
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("cttiqmdkevqjvkeo")
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("aexflgaoyvtpxwok")
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("ltwkpypieivahohh")
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 managed cluster resource.
*/
@JvmName("xqggtkphbomdkwki")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
internal fun build(): PrivateEndpointConnectionArgs = PrivateEndpointConnectionArgs(
privateEndpoint = privateEndpoint,
privateEndpointConnectionName = privateEndpointConnectionName,
privateLinkServiceConnectionState = privateLinkServiceConnectionState,
resourceGroupName = resourceGroupName,
resourceName = resourceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy