![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.sql.kotlin.JobPrivateEndpointArgs.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.sql.kotlin
import com.pulumi.azurenative.sql.JobPrivateEndpointArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* A job agent private endpoint.
* Azure REST API version: 2023-05-01-preview.
* Other available API versions: 2023-08-01-preview.
* ## Example Usage
* ### Create a private endpoint.
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var jobPrivateEndpoint = new AzureNative.Sql.JobPrivateEndpoint("jobPrivateEndpoint", new()
* {
* JobAgentName = "agent1",
* PrivateEndpointName = "endpoint1",
* ResourceGroupName = "group1",
* ServerName = "server1",
* TargetServerAzureResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/targetserver1",
* });
* });
* ```
* ```go
* package main
* import (
* sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := sql.NewJobPrivateEndpoint(ctx, "jobPrivateEndpoint", &sql.JobPrivateEndpointArgs{
* JobAgentName: pulumi.String("agent1"),
* PrivateEndpointName: pulumi.String("endpoint1"),
* ResourceGroupName: pulumi.String("group1"),
* ServerName: pulumi.String("server1"),
* TargetServerAzureResourceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/targetserver1"),
* })
* 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.sql.JobPrivateEndpoint;
* import com.pulumi.azurenative.sql.JobPrivateEndpointArgs;
* 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 jobPrivateEndpoint = new JobPrivateEndpoint("jobPrivateEndpoint", JobPrivateEndpointArgs.builder()
* .jobAgentName("agent1")
* .privateEndpointName("endpoint1")
* .resourceGroupName("group1")
* .serverName("server1")
* .targetServerAzureResourceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/targetserver1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:sql:JobPrivateEndpoint endpoint1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/privateEndpoints/{privateEndpointName}
* ```
* @property jobAgentName The name of the job agent.
* @property privateEndpointName The name of the private endpoint.
* @property resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
* @property serverName The name of the server.
* @property targetServerAzureResourceId ARM resource id of the server the private endpoint will target.
*/
public data class JobPrivateEndpointArgs(
public val jobAgentName: Output? = null,
public val privateEndpointName: Output? = null,
public val resourceGroupName: Output? = null,
public val serverName: Output? = null,
public val targetServerAzureResourceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.sql.JobPrivateEndpointArgs =
com.pulumi.azurenative.sql.JobPrivateEndpointArgs.builder()
.jobAgentName(jobAgentName?.applyValue({ args0 -> args0 }))
.privateEndpointName(privateEndpointName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.serverName(serverName?.applyValue({ args0 -> args0 }))
.targetServerAzureResourceId(targetServerAzureResourceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [JobPrivateEndpointArgs].
*/
@PulumiTagMarker
public class JobPrivateEndpointArgsBuilder internal constructor() {
private var jobAgentName: Output? = null
private var privateEndpointName: Output? = null
private var resourceGroupName: Output? = null
private var serverName: Output? = null
private var targetServerAzureResourceId: Output? = null
/**
* @param value The name of the job agent.
*/
@JvmName("jycljgdmqgoofuna")
public suspend fun jobAgentName(`value`: Output) {
this.jobAgentName = value
}
/**
* @param value The name of the private endpoint.
*/
@JvmName("qqolukcjvdushgbd")
public suspend fun privateEndpointName(`value`: Output) {
this.privateEndpointName = value
}
/**
* @param value The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
*/
@JvmName("oofkxioswdaojtwb")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the server.
*/
@JvmName("xqrtulbdfpgduicv")
public suspend fun serverName(`value`: Output) {
this.serverName = value
}
/**
* @param value ARM resource id of the server the private endpoint will target.
*/
@JvmName("ouemjhienswpyglu")
public suspend fun targetServerAzureResourceId(`value`: Output) {
this.targetServerAzureResourceId = value
}
/**
* @param value The name of the job agent.
*/
@JvmName("hodgewpomrpobpqv")
public suspend fun jobAgentName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.jobAgentName = mapped
}
/**
* @param value The name of the private endpoint.
*/
@JvmName("nibdgvdfwktchaso")
public suspend fun privateEndpointName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateEndpointName = mapped
}
/**
* @param value The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
*/
@JvmName("otsnwyafwnjmafnq")
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 server.
*/
@JvmName("djgfaxmiqwtmkhad")
public suspend fun serverName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serverName = mapped
}
/**
* @param value ARM resource id of the server the private endpoint will target.
*/
@JvmName("xslssyaywgmphyla")
public suspend fun targetServerAzureResourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.targetServerAzureResourceId = mapped
}
internal fun build(): JobPrivateEndpointArgs = JobPrivateEndpointArgs(
jobAgentName = jobAgentName,
privateEndpointName = privateEndpointName,
resourceGroupName = resourceGroupName,
serverName = serverName,
targetServerAzureResourceId = targetServerAzureResourceId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy