![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.maps.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.maps.kotlin
import com.pulumi.azurenative.maps.PrivateEndpointConnectionArgs.builder
import com.pulumi.azurenative.maps.kotlin.inputs.PrivateLinkServiceConnectionStateArgs
import com.pulumi.azurenative.maps.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-12-01-preview.
* Other available API versions: 2024-01-01-preview.
* ## Example Usage
* ### PrivateEndpointConnections_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var privateEndpointConnection = new AzureNative.Maps.PrivateEndpointConnection("privateEndpointConnection", new()
* {
* AccountName = "myMapsAccount",
* PrivateEndpointConnectionName = "privateEndpointConnectionName",
* PrivateLinkServiceConnectionState = new AzureNative.Maps.Inputs.PrivateLinkServiceConnectionStateArgs
* {
* Description = "Auto-Approved",
* Status = AzureNative.Maps.PrivateEndpointServiceConnectionStatus.Approved,
* },
* ResourceGroupName = "myResourceGroup",
* });
* });
* ```
* ```go
* package main
* import (
* maps "github.com/pulumi/pulumi-azure-native-sdk/maps/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := maps.NewPrivateEndpointConnection(ctx, "privateEndpointConnection", &maps.PrivateEndpointConnectionArgs{
* AccountName: pulumi.String("myMapsAccount"),
* PrivateEndpointConnectionName: pulumi.String("privateEndpointConnectionName"),
* PrivateLinkServiceConnectionState: &maps.PrivateLinkServiceConnectionStateArgs{
* Description: pulumi.String("Auto-Approved"),
* Status: pulumi.String(maps.PrivateEndpointServiceConnectionStatusApproved),
* },
* ResourceGroupName: pulumi.String("myResourceGroup"),
* })
* 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.maps.PrivateEndpointConnection;
* import com.pulumi.azurenative.maps.PrivateEndpointConnectionArgs;
* import com.pulumi.azurenative.maps.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()
* .accountName("myMapsAccount")
* .privateEndpointConnectionName("privateEndpointConnectionName")
* .privateLinkServiceConnectionState(PrivateLinkServiceConnectionStateArgs.builder()
* .description("Auto-Approved")
* .status("Approved")
* .build())
* .resourceGroupName("myResourceGroup")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:maps:PrivateEndpointConnection privateEndpointConnectionName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}
* ```
* @property accountName The name of the Maps Account.
* @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.
*/
public data class PrivateEndpointConnectionArgs(
public val accountName: Output? = null,
public val privateEndpointConnectionName: Output? = null,
public val privateLinkServiceConnectionState: Output? =
null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.maps.PrivateEndpointConnectionArgs =
com.pulumi.azurenative.maps.PrivateEndpointConnectionArgs.builder()
.accountName(accountName?.applyValue({ args0 -> args0 }))
.privateEndpointConnectionName(privateEndpointConnectionName?.applyValue({ args0 -> args0 }))
.privateLinkServiceConnectionState(
privateLinkServiceConnectionState?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [PrivateEndpointConnectionArgs].
*/
@PulumiTagMarker
public class PrivateEndpointConnectionArgsBuilder internal constructor() {
private var accountName: Output? = null
private var privateEndpointConnectionName: Output? = null
private var privateLinkServiceConnectionState: Output? =
null
private var resourceGroupName: Output? = null
/**
* @param value The name of the Maps Account.
*/
@JvmName("lrpcawjslwreffeh")
public suspend fun accountName(`value`: Output) {
this.accountName = value
}
/**
* @param value The name of the Private Endpoint Connection.
*/
@JvmName("jsfaoosffhjvwdeo")
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("accbgtxlvemdjprv")
public suspend fun privateLinkServiceConnectionState(`value`: Output) {
this.privateLinkServiceConnectionState = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("jswbdxcswsfnveiu")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the Maps Account.
*/
@JvmName("qdlmsnkgjicttuac")
public suspend fun accountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountName = mapped
}
/**
* @param value The name of the Private Endpoint Connection.
*/
@JvmName("ekheyxludvlmmqho")
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("svpccemwybwvgnuh")
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("xngceipwpptioowf")
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("holjqvrsquosvect")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): PrivateEndpointConnectionArgs = PrivateEndpointConnectionArgs(
accountName = accountName,
privateEndpointConnectionName = privateEndpointConnectionName,
privateLinkServiceConnectionState = privateLinkServiceConnectionState,
resourceGroupName = resourceGroupName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy