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.datafactory.kotlin.LinkedServiceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin
import com.pulumi.azurenative.datafactory.LinkedServiceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Linked service resource type.
* Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
* ## Example Usage
* ### LinkedServices_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var linkedService = new AzureNative.DataFactory.LinkedService("linkedService", new()
* {
* FactoryName = "exampleFactoryName",
* LinkedServiceName = "exampleLinkedService",
* Properties = new AzureNative.DataFactory.Inputs.AzureStorageLinkedServiceArgs
* {
* ConnectionString = new Dictionary
* {
* ["type"] = "SecureString",
* ["value"] = "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=",
* },
* Type = "AzureStorage",
* },
* ResourceGroupName = "exampleResourceGroup",
* });
* });
* ```
* ```go
* package main
* import (
* datafactory "github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datafactory.NewLinkedService(ctx, "linkedService", &datafactory.LinkedServiceArgs{
* FactoryName: pulumi.String("exampleFactoryName"),
* LinkedServiceName: pulumi.String("exampleLinkedService"),
* Properties: &datafactory.AzureStorageLinkedServiceArgs{
* ConnectionString: pulumi.Any(map[string]interface{}{
* "type": "SecureString",
* "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=",
* }),
* Type: pulumi.String("AzureStorage"),
* },
* ResourceGroupName: pulumi.String("exampleResourceGroup"),
* })
* 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.datafactory.LinkedService;
* import com.pulumi.azurenative.datafactory.LinkedServiceArgs;
* 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 linkedService = new LinkedService("linkedService", LinkedServiceArgs.builder()
* .factoryName("exampleFactoryName")
* .linkedServiceName("exampleLinkedService")
* .properties(AzureStorageLinkedServiceArgs.builder()
* .connectionString(Map.ofEntries(
* Map.entry("type", "SecureString"),
* Map.entry("value", "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=")
* ))
* .type("AzureStorage")
* .build())
* .resourceGroupName("exampleResourceGroup")
* .build());
* }
* }
* ```
* ### LinkedServices_Update
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var linkedService = new AzureNative.DataFactory.LinkedService("linkedService", new()
* {
* FactoryName = "exampleFactoryName",
* LinkedServiceName = "exampleLinkedService",
* Properties = new AzureNative.DataFactory.Inputs.AzureStorageLinkedServiceArgs
* {
* ConnectionString = new Dictionary
* {
* ["type"] = "SecureString",
* ["value"] = "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=",
* },
* Description = "Example description",
* Type = "AzureStorage",
* },
* ResourceGroupName = "exampleResourceGroup",
* });
* });
* ```
* ```go
* package main
* import (
* datafactory "github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datafactory.NewLinkedService(ctx, "linkedService", &datafactory.LinkedServiceArgs{
* FactoryName: pulumi.String("exampleFactoryName"),
* LinkedServiceName: pulumi.String("exampleLinkedService"),
* Properties: &datafactory.AzureStorageLinkedServiceArgs{
* ConnectionString: pulumi.Any(map[string]interface{}{
* "type": "SecureString",
* "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=",
* }),
* Description: pulumi.String("Example description"),
* Type: pulumi.String("AzureStorage"),
* },
* ResourceGroupName: pulumi.String("exampleResourceGroup"),
* })
* 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.datafactory.LinkedService;
* import com.pulumi.azurenative.datafactory.LinkedServiceArgs;
* 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 linkedService = new LinkedService("linkedService", LinkedServiceArgs.builder()
* .factoryName("exampleFactoryName")
* .linkedServiceName("exampleLinkedService")
* .properties(AzureStorageLinkedServiceArgs.builder()
* .connectionString(Map.ofEntries(
* Map.entry("type", "SecureString"),
* Map.entry("value", "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=")
* ))
* .description("Example description")
* .type("AzureStorage")
* .build())
* .resourceGroupName("exampleResourceGroup")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:datafactory:LinkedService exampleLinkedService /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName}
* ```
* @property factoryName The factory name.
* @property linkedServiceName The linked service name.
* @property properties Properties of linked service.
* @property resourceGroupName The resource group name.
*/
public data class LinkedServiceArgs(
public val factoryName: Output? = null,
public val linkedServiceName: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.LinkedServiceArgs =
com.pulumi.azurenative.datafactory.LinkedServiceArgs.builder()
.factoryName(factoryName?.applyValue({ args0 -> args0 }))
.linkedServiceName(linkedServiceName?.applyValue({ args0 -> args0 }))
.properties(properties?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LinkedServiceArgs].
*/
@PulumiTagMarker
public class LinkedServiceArgsBuilder internal constructor() {
private var factoryName: Output? = null
private var linkedServiceName: Output? = null
private var properties: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value The factory name.
*/
@JvmName("kadhxyjgjyexbjat")
public suspend fun factoryName(`value`: Output) {
this.factoryName = value
}
/**
* @param value The linked service name.
*/
@JvmName("nhcrssjhjfsjlhei")
public suspend fun linkedServiceName(`value`: Output) {
this.linkedServiceName = value
}
/**
* @param value Properties of linked service.
*/
@JvmName("gigftppquglhfuhk")
public suspend fun properties(`value`: Output) {
this.properties = value
}
/**
* @param value The resource group name.
*/
@JvmName("cxvxdreblucqmwus")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The factory name.
*/
@JvmName("vlqqxlufnoncjwpp")
public suspend fun factoryName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.factoryName = mapped
}
/**
* @param value The linked service name.
*/
@JvmName("xkmbkbogyavnebrf")
public suspend fun linkedServiceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.linkedServiceName = mapped
}
/**
* @param value Properties of linked service.
*/
@JvmName("giovwnnntjdprajb")
public suspend fun properties(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.properties = mapped
}
/**
* @param value The resource group name.
*/
@JvmName("uqotcbrwpkbinylu")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): LinkedServiceArgs = LinkedServiceArgs(
factoryName = factoryName,
linkedServiceName = linkedServiceName,
properties = properties,
resourceGroupName = resourceGroupName,
)
}