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.datashare.kotlin.BlobDataSetArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datashare.kotlin
import com.pulumi.azurenative.datashare.BlobDataSetArgs.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
/**
* An Azure storage blob data set.
* Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-09-01.
* ## Example Usage
* ### DataSets_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobDataSet = new AzureNative.DataShare.BlobDataSet("blobDataSet", new()
* {
* AccountName = "Account1",
* ContainerName = "C1",
* DataSetName = "Dataset1",
* FilePath = "file21",
* Kind = "Blob",
* ResourceGroup = "SampleResourceGroup",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* StorageAccountName = "storage2",
* SubscriptionId = "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobDataSet(ctx, "blobDataSet", &datashare.BlobDataSetArgs{
* AccountName: pulumi.String("Account1"),
* ContainerName: pulumi.String("C1"),
* DataSetName: pulumi.String("Dataset1"),
* FilePath: pulumi.String("file21"),
* Kind: pulumi.String("Blob"),
* ResourceGroup: pulumi.String("SampleResourceGroup"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* StorageAccountName: pulumi.String("storage2"),
* SubscriptionId: pulumi.String("433a8dfd-e5d5-4e77-ad86-90acdc75eb1a"),
* })
* 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.datashare.BlobDataSet;
* import com.pulumi.azurenative.datashare.BlobDataSetArgs;
* 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 blobDataSet = new BlobDataSet("blobDataSet", BlobDataSetArgs.builder()
* .accountName("Account1")
* .containerName("C1")
* .dataSetName("Dataset1")
* .filePath("file21")
* .kind("Blob")
* .resourceGroup("SampleResourceGroup")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .storageAccountName("storage2")
* .subscriptionId("433a8dfd-e5d5-4e77-ad86-90acdc75eb1a")
* .build());
* }
* }
* ```
* ### DataSets_KustoCluster_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobDataSet = new AzureNative.DataShare.BlobDataSet("blobDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobDataSet(ctx, "blobDataSet", &datashare.BlobDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* 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.datashare.BlobDataSet;
* import com.pulumi.azurenative.datashare.BlobDataSetArgs;
* 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 blobDataSet = new BlobDataSet("blobDataSet", BlobDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_KustoDatabase_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobDataSet = new AzureNative.DataShare.BlobDataSet("blobDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobDataSet(ctx, "blobDataSet", &datashare.BlobDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* 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.datashare.BlobDataSet;
* import com.pulumi.azurenative.datashare.BlobDataSetArgs;
* 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 blobDataSet = new BlobDataSet("blobDataSet", BlobDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_KustoTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobDataSet = new AzureNative.DataShare.BlobDataSet("blobDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobDataSet(ctx, "blobDataSet", &datashare.BlobDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* 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.datashare.BlobDataSet;
* import com.pulumi.azurenative.datashare.BlobDataSetArgs;
* 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 blobDataSet = new BlobDataSet("blobDataSet", BlobDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_SqlDBTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobDataSet = new AzureNative.DataShare.BlobDataSet("blobDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobDataSet(ctx, "blobDataSet", &datashare.BlobDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* 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.datashare.BlobDataSet;
* import com.pulumi.azurenative.datashare.BlobDataSetArgs;
* 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 blobDataSet = new BlobDataSet("blobDataSet", BlobDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_SqlDWTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobDataSet = new AzureNative.DataShare.BlobDataSet("blobDataSet", new()
* {
* AccountName = "Account1",
* DataSetName = "Dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "Share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobDataSet(ctx, "blobDataSet", &datashare.BlobDataSetArgs{
* AccountName: pulumi.String("Account1"),
* DataSetName: pulumi.String("Dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("Share1"),
* })
* 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.datashare.BlobDataSet;
* import com.pulumi.azurenative.datashare.BlobDataSetArgs;
* 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 blobDataSet = new BlobDataSet("blobDataSet", BlobDataSetArgs.builder()
* .accountName("Account1")
* .dataSetName("Dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("Share1")
* .build());
* }
* }
* ```
* ### DataSets_SynapseWorkspaceSqlPoolTable_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var blobDataSet = new AzureNative.DataShare.BlobDataSet("blobDataSet", new()
* {
* AccountName = "sourceAccount",
* DataSetName = "dataset1",
* ResourceGroupName = "SampleResourceGroup",
* ShareName = "share1",
* });
* });
* ```
* ```go
* package main
* import (
* datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := datashare.NewBlobDataSet(ctx, "blobDataSet", &datashare.BlobDataSetArgs{
* AccountName: pulumi.String("sourceAccount"),
* DataSetName: pulumi.String("dataset1"),
* ResourceGroupName: pulumi.String("SampleResourceGroup"),
* ShareName: pulumi.String("share1"),
* })
* 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.datashare.BlobDataSet;
* import com.pulumi.azurenative.datashare.BlobDataSetArgs;
* 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 blobDataSet = new BlobDataSet("blobDataSet", BlobDataSetArgs.builder()
* .accountName("sourceAccount")
* .dataSetName("dataset1")
* .resourceGroupName("SampleResourceGroup")
* .shareName("share1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:datashare:BlobDataSet dataset1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/dataSets/{dataSetName}
* ```
* @property accountName The name of the share account.
* @property containerName Container that has the file path.
* @property dataSetName The name of the dataSet.
* @property filePath File path within the source data set
* @property kind Kind of data set.
* Expected value is 'Blob'.
* @property resourceGroup Resource group of storage account
* @property resourceGroupName The resource group name.
* @property shareName The name of the share to add the data set to.
* @property storageAccountName Storage account name of the source data set
* @property subscriptionId Subscription id of storage account
*/
public data class BlobDataSetArgs(
public val accountName: Output? = null,
public val containerName: Output? = null,
public val dataSetName: Output? = null,
public val filePath: Output? = null,
public val kind: Output? = null,
public val resourceGroup: Output? = null,
public val resourceGroupName: Output? = null,
public val shareName: Output? = null,
public val storageAccountName: Output? = null,
public val subscriptionId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datashare.BlobDataSetArgs =
com.pulumi.azurenative.datashare.BlobDataSetArgs.builder()
.accountName(accountName?.applyValue({ args0 -> args0 }))
.containerName(containerName?.applyValue({ args0 -> args0 }))
.dataSetName(dataSetName?.applyValue({ args0 -> args0 }))
.filePath(filePath?.applyValue({ args0 -> args0 }))
.kind(kind?.applyValue({ args0 -> args0 }))
.resourceGroup(resourceGroup?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.shareName(shareName?.applyValue({ args0 -> args0 }))
.storageAccountName(storageAccountName?.applyValue({ args0 -> args0 }))
.subscriptionId(subscriptionId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BlobDataSetArgs].
*/
@PulumiTagMarker
public class BlobDataSetArgsBuilder internal constructor() {
private var accountName: Output? = null
private var containerName: Output? = null
private var dataSetName: Output? = null
private var filePath: Output? = null
private var kind: Output? = null
private var resourceGroup: Output? = null
private var resourceGroupName: Output? = null
private var shareName: Output? = null
private var storageAccountName: Output? = null
private var subscriptionId: Output? = null
/**
* @param value The name of the share account.
*/
@JvmName("eueajuqkftvjpgkm")
public suspend fun accountName(`value`: Output) {
this.accountName = value
}
/**
* @param value Container that has the file path.
*/
@JvmName("kqwbcaqguobnlguc")
public suspend fun containerName(`value`: Output) {
this.containerName = value
}
/**
* @param value The name of the dataSet.
*/
@JvmName("oitwohromqhujfhl")
public suspend fun dataSetName(`value`: Output) {
this.dataSetName = value
}
/**
* @param value File path within the source data set
*/
@JvmName("txvawcctljrkqimt")
public suspend fun filePath(`value`: Output) {
this.filePath = value
}
/**
* @param value Kind of data set.
* Expected value is 'Blob'.
*/
@JvmName("nhkiyesmcqyberig")
public suspend fun kind(`value`: Output) {
this.kind = value
}
/**
* @param value Resource group of storage account
*/
@JvmName("rtcdtmnjutnuxwbb")
public suspend fun resourceGroup(`value`: Output) {
this.resourceGroup = value
}
/**
* @param value The resource group name.
*/
@JvmName("vbeiffyqetoorwvh")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the share to add the data set to.
*/
@JvmName("cwmalncanymlcbdr")
public suspend fun shareName(`value`: Output) {
this.shareName = value
}
/**
* @param value Storage account name of the source data set
*/
@JvmName("lnfvfxjwhtucjalo")
public suspend fun storageAccountName(`value`: Output) {
this.storageAccountName = value
}
/**
* @param value Subscription id of storage account
*/
@JvmName("qvdieunbxqljyynv")
public suspend fun subscriptionId(`value`: Output) {
this.subscriptionId = value
}
/**
* @param value The name of the share account.
*/
@JvmName("jyonlohfgjcvdqhy")
public suspend fun accountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountName = mapped
}
/**
* @param value Container that has the file path.
*/
@JvmName("oxhmwwqiflinciju")
public suspend fun containerName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.containerName = mapped
}
/**
* @param value The name of the dataSet.
*/
@JvmName("ryomrvrmfqatvfwe")
public suspend fun dataSetName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataSetName = mapped
}
/**
* @param value File path within the source data set
*/
@JvmName("bimtqnhqrrdopolj")
public suspend fun filePath(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.filePath = mapped
}
/**
* @param value Kind of data set.
* Expected value is 'Blob'.
*/
@JvmName("rhsilgspveiulxoa")
public suspend fun kind(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value Resource group of storage account
*/
@JvmName("mqhsreglifkvpnqw")
public suspend fun resourceGroup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroup = mapped
}
/**
* @param value The resource group name.
*/
@JvmName("cplvvmofwdmicgkh")
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 share to add the data set to.
*/
@JvmName("iuarraksviolbbni")
public suspend fun shareName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.shareName = mapped
}
/**
* @param value Storage account name of the source data set
*/
@JvmName("lsxlsxnnasnatmsf")
public suspend fun storageAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.storageAccountName = mapped
}
/**
* @param value Subscription id of storage account
*/
@JvmName("mekjwjvwjmpilduy")
public suspend fun subscriptionId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subscriptionId = mapped
}
internal fun build(): BlobDataSetArgs = BlobDataSetArgs(
accountName = accountName,
containerName = containerName,
dataSetName = dataSetName,
filePath = filePath,
kind = kind,
resourceGroup = resourceGroup,
resourceGroupName = resourceGroupName,
shareName = shareName,
storageAccountName = storageAccountName,
subscriptionId = subscriptionId,
)
}