![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.iotcentral.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.iotcentral.kotlin
import com.pulumi.azurenative.iotcentral.PrivateEndpointConnectionArgs.builder
import com.pulumi.azurenative.iotcentral.kotlin.inputs.PrivateLinkServiceConnectionStateArgs
import com.pulumi.azurenative.iotcentral.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-11-01-preview. Prior API version in Azure Native 1.x: 2021-11-01-preview.
* ## Example Usage
* ### PrivateEndpointConnections_Update
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var privateEndpointConnection = new AzureNative.IoTCentral.PrivateEndpointConnection("privateEndpointConnection", new()
* {
* PrivateEndpointConnectionName = "myIoTCentralAppEndpoint",
* PrivateLinkServiceConnectionState = new AzureNative.IoTCentral.Inputs.PrivateLinkServiceConnectionStateArgs
* {
* ActionsRequired = "None",
* Description = "Auto-approved",
* Status = AzureNative.IoTCentral.PrivateEndpointServiceConnectionStatus.Approved,
* },
* ResourceGroupName = "resRg",
* ResourceName = "myIoTCentralApp",
* });
* });
* ```
* ```go
* package main
* import (
* iotcentral "github.com/pulumi/pulumi-azure-native-sdk/iotcentral/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := iotcentral.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &iotcentral.PrivateEndpointConnectionArgs{
* PrivateEndpointConnectionName: pulumi.String("myIoTCentralAppEndpoint"),
* PrivateLinkServiceConnectionState: &iotcentral.PrivateLinkServiceConnectionStateArgs{
* ActionsRequired: pulumi.String("None"),
* Description: pulumi.String("Auto-approved"),
* Status: pulumi.String(iotcentral.PrivateEndpointServiceConnectionStatusApproved),
* },
* ResourceGroupName: pulumi.String("resRg"),
* ResourceName: pulumi.String("myIoTCentralApp"),
* })
* 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.iotcentral.PrivateEndpointConnection;
* import com.pulumi.azurenative.iotcentral.PrivateEndpointConnectionArgs;
* import com.pulumi.azurenative.iotcentral.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("myIoTCentralAppEndpoint")
* .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
* .actionsRequired("None")
* .description("Auto-approved")
* .status("Approved")
* .build())
* .resourceGroupName("resRg")
* .resourceName("myIoTCentralApp")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:iotcentral:PrivateEndpointConnection myIoTCentralAppEndpoint.a791c6b5-874d-4f03-9092-718490d33770 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @property privateEndpointConnectionName The private endpoint connection name.
* @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 that contains the IoT Central application.
* @property resourceName The ARM resource name of the IoT Central application.
*/
public data class PrivateEndpointConnectionArgs(
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.iotcentral.PrivateEndpointConnectionArgs =
com.pulumi.azurenative.iotcentral.PrivateEndpointConnectionArgs.builder()
.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 privateEndpointConnectionName: Output? = null
private var privateLinkServiceConnectionState: Output? =
null
private var resourceGroupName: Output? = null
private var resourceName: Output? = null
/**
* @param value The private endpoint connection name.
*/
@JvmName("ijsqbmyctndutacp")
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("kcssbclggkbjunqr")
public suspend fun privateLinkServiceConnectionState(`value`: Output) {
this.privateLinkServiceConnectionState = value
}
/**
* @param value The name of the resource group that contains the IoT Central application.
*/
@JvmName("nlcwnrcqocooaxaq")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The ARM resource name of the IoT Central application.
*/
@JvmName("eavxbuhygmkcpkyd")
public suspend fun resourceName(`value`: Output) {
this.resourceName = value
}
/**
* @param value The private endpoint connection name.
*/
@JvmName("thruujkfwjcbmqqt")
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("cumxrpsathfwxmrh")
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("dykccvbvykwqgtnq")
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 that contains the IoT Central application.
*/
@JvmName("nayxcagtlbnkumpq")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The ARM resource name of the IoT Central application.
*/
@JvmName("repctvdydpimvhwj")
public suspend fun resourceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceName = mapped
}
internal fun build(): PrivateEndpointConnectionArgs = PrivateEndpointConnectionArgs(
privateEndpointConnectionName = privateEndpointConnectionName,
privateLinkServiceConnectionState = privateLinkServiceConnectionState,
resourceGroupName = resourceGroupName,
resourceName = resourceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy