
com.pulumi.azurenative.healthcareapis.kotlin.WorkspacePrivateEndpointConnectionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.healthcareapis.kotlin
import com.pulumi.azurenative.healthcareapis.WorkspacePrivateEndpointConnectionArgs.builder
import com.pulumi.azurenative.healthcareapis.kotlin.inputs.PrivateLinkServiceConnectionStateArgs
import com.pulumi.azurenative.healthcareapis.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: 2023-02-28. Prior API version in Azure Native 1.x: 2022-05-15.
* Other available API versions: 2023-09-06, 2023-11-01, 2023-12-01, 2024-03-01, 2024-03-31.
* ## Example Usage
* ### WorkspacePrivateEndpointConnection_CreateOrUpdate
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var workspacePrivateEndpointConnection = new AzureNative.HealthcareApis.WorkspacePrivateEndpointConnection("workspacePrivateEndpointConnection", new()
* {
* PrivateEndpointConnectionName = "myConnection",
* PrivateLinkServiceConnectionState = new AzureNative.HealthcareApis.Inputs.PrivateLinkServiceConnectionStateArgs
* {
* Description = "Auto-Approved",
* Status = AzureNative.HealthcareApis.PrivateEndpointServiceConnectionStatus.Approved,
* },
* ResourceGroupName = "testRG",
* WorkspaceName = "workspace1",
* });
* });
* ```
* ```go
* package main
* import (
* healthcareapis "github.com/pulumi/pulumi-azure-native-sdk/healthcareapis/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := healthcareapis.NewWorkspacePrivateEndpointConnection(ctx, "workspacePrivateEndpointConnection", &healthcareapis.WorkspacePrivateEndpointConnectionArgs{
* PrivateEndpointConnectionName: pulumi.String("myConnection"),
* PrivateLinkServiceConnectionState: &healthcareapis.PrivateLinkServiceConnectionStateArgs{
* Description: pulumi.String("Auto-Approved"),
* Status: pulumi.String(healthcareapis.PrivateEndpointServiceConnectionStatusApproved),
* },
* ResourceGroupName: pulumi.String("testRG"),
* WorkspaceName: pulumi.String("workspace1"),
* })
* 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.healthcareapis.WorkspacePrivateEndpointConnection;
* import com.pulumi.azurenative.healthcareapis.WorkspacePrivateEndpointConnectionArgs;
* import com.pulumi.azurenative.healthcareapis.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 workspacePrivateEndpointConnection = new WorkspacePrivateEndpointConnection("workspacePrivateEndpointConnection", WorkspacePrivateEndpointConnectionArgs.builder()
* .privateEndpointConnectionName("myConnection")
* .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
* .description("Auto-Approved")
* .status("Approved")
* .build())
* .resourceGroupName("testRG")
* .workspaceName("workspace1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:healthcareapis:WorkspacePrivateEndpointConnection myConnection /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HealthcareApis/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @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 that contains the service instance.
* @property workspaceName The name of workspace resource.
*/
public data class WorkspacePrivateEndpointConnectionArgs(
public val privateEndpointConnectionName: Output? = null,
public val privateLinkServiceConnectionState: Output? =
null,
public val resourceGroupName: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.healthcareapis.WorkspacePrivateEndpointConnectionArgs =
com.pulumi.azurenative.healthcareapis.WorkspacePrivateEndpointConnectionArgs.builder()
.privateEndpointConnectionName(privateEndpointConnectionName?.applyValue({ args0 -> args0 }))
.privateLinkServiceConnectionState(
privateLinkServiceConnectionState?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WorkspacePrivateEndpointConnectionArgs].
*/
@PulumiTagMarker
public class WorkspacePrivateEndpointConnectionArgsBuilder internal constructor() {
private var privateEndpointConnectionName: Output? = null
private var privateLinkServiceConnectionState: Output? =
null
private var resourceGroupName: Output? = null
private var workspaceName: Output? = null
/**
* @param value The name of the private endpoint connection associated with the Azure resource
*/
@JvmName("xavsueyufisxwvry")
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("ictcjlvfcqrfxkcf")
public suspend fun privateLinkServiceConnectionState(`value`: Output) {
this.privateLinkServiceConnectionState = value
}
/**
* @param value The name of the resource group that contains the service instance.
*/
@JvmName("ruconylgumyyepoc")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of workspace resource.
*/
@JvmName("fgkrfpgvctmcgqnf")
public suspend fun workspaceName(`value`: Output) {
this.workspaceName = value
}
/**
* @param value The name of the private endpoint connection associated with the Azure resource
*/
@JvmName("fyhofrmnsegmvfkj")
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("ffqhrhmibhyefjmu")
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("tlqsgyapbhlfrmfj")
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 service instance.
*/
@JvmName("vxdbeopoxfcbylqs")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of workspace resource.
*/
@JvmName("jbwrbjvllwaupjok")
public suspend fun workspaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceName = mapped
}
internal fun build(): WorkspacePrivateEndpointConnectionArgs =
WorkspacePrivateEndpointConnectionArgs(
privateEndpointConnectionName = privateEndpointConnectionName,
privateLinkServiceConnectionState = privateLinkServiceConnectionState,
resourceGroupName = resourceGroupName,
workspaceName = workspaceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy