All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.azuredatatransfer.kotlin.ConnectionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.azuredatatransfer.kotlin
import com.pulumi.azurenative.azuredatatransfer.ConnectionArgs.builder
import com.pulumi.azurenative.azuredatatransfer.kotlin.inputs.ConnectionPropertiesArgs
import com.pulumi.azurenative.azuredatatransfer.kotlin.inputs.ConnectionPropertiesArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The connection resource definition.
* Azure REST API version: 2023-10-11-preview.
* Other available API versions: 2024-01-25, 2024-05-07.
* ## Example Usage
* ### Creates or updates the connection resource
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var connection = new AzureNative.AzureDataTransfer.Connection("connection", new()
* {
* ConnectionName = "testConnection",
* Location = "East US",
* Properties = new AzureNative.AzureDataTransfer.Inputs.ConnectionPropertiesArgs
* {
* Justification = "justification",
* Pipeline = "testdc",
* RequirementId = "id",
* },
* ResourceGroupName = "testRG",
* });
* });
* ```
* ```go
* package main
* import (
* azuredatatransfer "github.com/pulumi/pulumi-azure-native-sdk/azuredatatransfer/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := azuredatatransfer.NewConnection(ctx, "connection", &azuredatatransfer.ConnectionArgs{
* ConnectionName: pulumi.String("testConnection"),
* Location: pulumi.String("East US"),
* Properties: &azuredatatransfer.ConnectionPropertiesArgs{
* Justification: pulumi.String("justification"),
* Pipeline: pulumi.String("testdc"),
* RequirementId: pulumi.String("id"),
* },
* ResourceGroupName: pulumi.String("testRG"),
* })
* 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.azuredatatransfer.Connection;
* import com.pulumi.azurenative.azuredatatransfer.ConnectionArgs;
* import com.pulumi.azurenative.azuredatatransfer.inputs.ConnectionPropertiesArgs;
* 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 connection = new Connection("connection", ConnectionArgs.builder()
* .connectionName("testConnection")
* .location("East US")
* .properties(ConnectionPropertiesArgs.builder()
* .justification("justification")
* .pipeline("testdc")
* .requirementId("id")
* .build())
* .resourceGroupName("testRG")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:azuredatatransfer:Connection myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureDataTransfer/connections/{connectionName}
* ```
* @property connectionName The name for the connection that is to be requested.
* @property location The geo-location where the resource lives
* @property properties Properties of connection
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class ConnectionArgs(
public val connectionName: Output? = null,
public val location: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.azuredatatransfer.ConnectionArgs =
com.pulumi.azurenative.azuredatatransfer.ConnectionArgs.builder()
.connectionName(connectionName?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ConnectionArgs].
*/
@PulumiTagMarker
public class ConnectionArgsBuilder internal constructor() {
private var connectionName: Output? = null
private var location: Output? = null
private var properties: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value The name for the connection that is to be requested.
*/
@JvmName("vduturygnirjsncp")
public suspend fun connectionName(`value`: Output) {
this.connectionName = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("fjhewkcjupxwlyov")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Properties of connection
*/
@JvmName("ncslgrnssaxhjffn")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("jecirkqwxjnajvcy")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("bduhcjflimeftxfv")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name for the connection that is to be requested.
*/
@JvmName("tlvwfhlhgdnagice")
public suspend fun connectionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.connectionName = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("cbrevrtwupxmuley")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Properties of connection
*/
@JvmName("ocajgxakkuggqagf")
public suspend fun properties(`value`: ConnectionPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param argument Properties of connection
*/
@JvmName("uyxhctqcmekwdfqn")
public suspend fun properties(argument: suspend ConnectionPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = ConnectionPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.properties = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("aosxbthogqgqjyov")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("cxvyuspstuvcnwgl")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("jnrdpsopkykolfra")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ConnectionArgs = ConnectionArgs(
connectionName = connectionName,
location = location,
properties = properties,
resourceGroupName = resourceGroupName,
tags = tags,
)
}